Fix root detection by checking UID

This commit is contained in:
Alexey
2026-05-07 11:53:29 +03:00
parent 66c37ad6fd
commit efdf3bcc1b

View File

@@ -390,7 +390,7 @@ verify_common() {
if [ "$(id -u)" -eq 0 ]; then
SUDO=""
if [ -n "${USER:-}" ] && [ "$USER" != "root" ]; then
if [ "$(id -u)" -ne 0 ]; then
die "$L_ERR_INCORR_ROOT_LOGIN"
fi
else