mirror of
https://github.com/telemt/telemt.git
synced 2026-05-13 15:21:44 +03:00
Fix root detection by checking UID
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user