Created
August 30, 2023 00:53
-
-
Save mgreen27/584c426ac5c2ee58f31acef37cae2235 to your computer and use it in GitHub Desktop.
Velociraptor server update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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