0
Fork 0
mirror of https://github.com/netweak/agent.git synced 2024-12-30 22:33:52 -05:00

Update install.sh

This commit is contained in:
Lucas Decrock 2024-11-03 05:36:55 +01:00
parent ebad3931d7
commit 8643f0ed7c

View file

@ -247,13 +247,6 @@ if [ -f "/etc/$NETWEAK/agent.sh" ]; then
echo "* * * * * bash /etc/$NETWEAK/agent.sh > /etc/$NETWEAK/log/cron.log 2>&1"
} | crontab -u "$NETWEAK" -
# Initial run of agent
if command -v runuser >/dev/null 2>&1; then
runuser -u "$NETWEAK" -- bash "/etc/$NETWEAK/agent.sh"
else
su -s /bin/bash -c "/etc/$NETWEAK/agent.sh" "$NETWEAK"
fi
# Show success
echo -e "|\n| Success: The Netweak agent has been installed\n|"