Skip to content

Instantly share code, notes, and snippets.

@mgreen27
Created August 30, 2023 00:53
Show Gist options
  • Save mgreen27/584c426ac5c2ee58f31acef37cae2235 to your computer and use it in GitHub Desktop.
Save mgreen27/584c426ac5c2ee58f31acef37cae2235 to your computer and use it in GitHub Desktop.
Velociraptor server update
#!/bin/bash
# Update install script
# run ./update.sh velociraptor-v0.6.4-dev-linux-amd64
# firslt backup old installer
#mv *.deb old/
# next make binary executable
sudo chmod +x $1
# build deb package
sudo ./$1 debian server --config=/etc/velociraptor/server.config.yaml
# install deb package
sudo dpkg -i $(ls *.deb)
# remove binary
rm -rf $1
# ensure file ownership ok and restart services
sudo chown velociraptor -R /opt/velociraptor
sudo systemctl restart velociraptor_server
sudo systemctl status velociraptor_server -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment