From 6d16cec48c1fbab178986c2329b1d03c16d04cd2 Mon Sep 17 00:00:00 2001 From: Fabian 'xx4h' Sylvester Date: Fri, 24 Mar 2023 23:29:35 +0100 Subject: [PATCH] Fix velociraptor startup Cleanup the velociraptor package building leftovers The dpkg creation of velociraptor creates log files owned by root, preventing velociraptor from starting afterwards. Delete the logs folder and let the initial velociraptor startup handle the rest. --- Vagrant/logger_bootstrap.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Vagrant/logger_bootstrap.sh b/Vagrant/logger_bootstrap.sh index 3ccb1c2d5..b1798f738 100644 --- a/Vagrant/logger_bootstrap.sh +++ b/Vagrant/logger_bootstrap.sh @@ -466,6 +466,8 @@ install_velociraptor() { cp /vagrant/resources/velociraptor/server.config.yaml /opt/velociraptor echo "[$(date +%H:%M:%S)]: Creating Velociraptor dpkg..." ./velociraptor --config /opt/velociraptor/server.config.yaml debian server + echo "[$(date +%H:%M:%S)]: Cleanup velociraptor package building leftovers..." + rm -rf /opt/velociraptor/logs echo "[$(date +%H:%M:%S)]: Installing the dpkg..." if dpkg -i velociraptor_*_server.deb >/dev/null; then echo "[$(date +%H:%M:%S)]: Installation complete!"