diff --git a/deploy/install.sh b/deploy/install.sh index 4f4f9161..6dcf4123 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -404,7 +404,9 @@ configure_server() { # Check if running as root check_root() { - if [ "$EUID" -ne 0 ]; then + # Use 'id -u' instead of $EUID for better compatibility + # $EUID may not work reliably when script is piped to bash + if [ "$(id -u)" -ne 0 ]; then print_error "$(msg 'run_as_root')" exit 1 fi