From 8c9db937b42e819ab604069f0f883762a3b6d4bf Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 24 Jun 2014 17:50:53 -0400 Subject: crap --- parabolaweb-changepassword.real.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parabolaweb-changepassword.real.in') 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 -- cgit v1.2.3-54-g00ecf