diff --git a/install.sh b/install.sh index 371b4f2..78c0678 100644 --- a/install.sh +++ b/install.sh @@ -394,7 +394,7 @@ verify_common() { if [ "$(id -u)" -eq 0 ]; then SUDO="" - if [ "$(id -u)" -ne 0 ]; then + if [ "${USER:-}" != "root" ] && [ "${LOGNAME:-}" != "root" ]; then die "$L_ERR_INCORR_ROOT_LOGIN" fi else