From 8643f0ed7c678adfbbe4c037c12a743a77442d82 Mon Sep 17 00:00:00 2001 From: Lucas Decrock Date: Sun, 3 Nov 2024 05:36:55 +0100 Subject: [PATCH] Update install.sh --- install.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/install.sh b/install.sh index a9a297d..135bb61 100644 --- a/install.sh +++ b/install.sh @@ -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|"