Autorun after install

This commit is contained in:
Lucas Decrock 2024-04-10 15:33:55 +02:00
parent 2a582a23f3
commit 2336edcf2e

View file

@ -140,6 +140,9 @@ then
crontab -u netweak -l 2>/dev/null | { cat; echo "* * * * * bash /etc/netweak/heartbeat.sh > /etc/netweak/log/cron.log 2>&1"; } | crontab -u netweak -
crontab -u netweak -l 2>/dev/null | { cat; echo "* * * * * bash /etc/netweak/agent.sh > /etc/netweak/log/cron.log 2>&1"; } | crontab -u netweak -
# Initial run of agent
bash /etc/netweak/agent.sh
# Show success
echo -e "|\n| Success: The Netweak agent has been installed\n|"