From 3518ab1aa710e5c4f3e7291a2ff62e3b2514452e Mon Sep 17 00:00:00 2001 From: MuDerakhshan <280736785+MuDerakhshan@users.noreply.github.com> Date: Sun, 14 Jun 2026 21:43:59 +0330 Subject: [PATCH] fix: correct sudo usage in node installer --- pasarguard.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pasarguard.sh b/pasarguard.sh index f5c096c..dbc4d43 100755 --- a/pasarguard.sh +++ b/pasarguard.sh @@ -1783,11 +1783,11 @@ install_node_command() { echo if [ "$(id -u)" = "0" ]; then + colorized_echo blue "Running node installation as root..." + bash -c "$(curl -sL https://github.com/PasarGuard/scripts/raw/main/pg-node.sh)" @ install + else colorized_echo blue "Running node installation with sudo..." sudo bash -c "$(curl -sL https://github.com/PasarGuard/scripts/raw/main/pg-node.sh)" @ install - else - colorized_echo blue "Running node installation without sudo..." - bash -c "$(curl -sL https://github.com/PasarGuard/scripts/raw/main/pg-node.sh)" @ install fi if [ $? -eq 0 ]; then