diff --git a/install_scripts/setup_frappe.sh b/install_scripts/setup_frappe.sh index 395eacf6..0a3ffae1 100644 --- a/install_scripts/setup_frappe.sh +++ b/install_scripts/setup_frappe.sh @@ -108,7 +108,7 @@ add_user() { chmod o+r /home/frappe export FRAPPE_USER="frappe" else - export FRAPPE_USER=`getent passwd | awk -F: '$3 == $SUDO_UID { print $1 }'` + export FRAPPE_USER="$SUDO_USER" fi }