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:
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"
|
||||
} | 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|"
|
||||
|
||||
|
|
Loading…
Reference in a new issue