diff options
-rw-r--r-- | parabolaweb-changepassword.real.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parabolaweb-changepassword.real.in b/parabolaweb-changepassword.real.in index e2f6437..07499e8 100644 --- a/parabolaweb-changepassword.real.in +++ b/parabolaweb-changepassword.real.in @@ -27,8 +27,8 @@ main() { [[ -e "${WEBDIR}/manage.py" ]] [[ -n "${WEBUSER}" ]] - REAL_USER=$USER - if ! { [[ $SUID_USER == root ]] || $SUID_USER == "$WEBUSER" ]]; }; then + local REAL_USER=$USER + if ! { [[ $SUID_USER == root ]] || [[ $SUID_USER == "$WEBUSER" ]]; }; then unset SUDO_USER SUDO_UID SUDO_GID SUDO_COMMAND fi |