Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pasarguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down