Skip to content

Commit 6d16cec

Browse files
committed
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.
1 parent f63213d commit 6d16cec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Vagrant/logger_bootstrap.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@ install_velociraptor() {
466466
cp /vagrant/resources/velociraptor/server.config.yaml /opt/velociraptor
467467
echo "[$(date +%H:%M:%S)]: Creating Velociraptor dpkg..."
468468
./velociraptor --config /opt/velociraptor/server.config.yaml debian server
469+
echo "[$(date +%H:%M:%S)]: Cleanup velociraptor package building leftovers..."
470+
rm -rf /opt/velociraptor/logs
469471
echo "[$(date +%H:%M:%S)]: Installing the dpkg..."
470472
if dpkg -i velociraptor_*_server.deb >/dev/null; then
471473
echo "[$(date +%H:%M:%S)]: Installation complete!"

0 commit comments

Comments
 (0)