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:
parent
067e19636a
commit
49e71a3969
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user