2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 07:28:25 +00:00

fix EUID check in add_user (shell script)

This commit is contained in:
Pratik Vyas 2014-07-27 22:52:16 +05:30
parent 067e19636a
commit 49e71a3969

View File

@ -102,7 +102,7 @@ add_user() {
# Check if script is running as root and is not running as sudo. We want to skip
# this step if the user is already running this script with sudo as a non root
# user
if [ -z $SUDO_UID ] && [ $EUID -eq 0 ]; then
if [ -z $SUDO_UID ] && [ $EUID -eq "0" ]; then
useradd -m -d /home/frappe -s $SHELL frappe
chmod o+x /home/frappe
chmod o+r /home/frappe