mirror of
https://github.com/netweak/agent.git
synced 2025-01-13 22:40:28 -05:00
Update install.sh
This commit is contained in:
parent
ebad3931d7
commit
8643f0ed7c
1 changed files with 0 additions and 7 deletions
|
@ -247,13 +247,6 @@ if [ -f "/etc/$NETWEAK/agent.sh" ]; then
|
||||||
echo "* * * * * bash /etc/$NETWEAK/agent.sh > /etc/$NETWEAK/log/cron.log 2>&1"
|
echo "* * * * * bash /etc/$NETWEAK/agent.sh > /etc/$NETWEAK/log/cron.log 2>&1"
|
||||||
} | crontab -u "$NETWEAK" -
|
} | 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
|
# Show success
|
||||||
echo -e "|\n| Success: The Netweak agent has been installed\n|"
|
echo -e "|\n| Success: The Netweak agent has been installed\n|"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue