File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if [ "x$(id -u)" != 'x0' ]; then
1010fi
1111
1212# Check admin user account
13- if [ ! -z " $( grep ^admin: /etc/passwd) " ] && [ " $force " != ' yes ' ]; then
13+ if [ ! -z " $( grep ^admin: /etc/passwd) " ] && [ -z " $1 " ]; then
1414 echo " Error: user admin exists"
1515 echo
1616 echo ' Please remove admin user account before proceeding.'
@@ -20,8 +20,8 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then
2020fi
2121
2222# Check admin user account
23- if [ ! -z " $( grep ^admin: /etc/group) " ] && [ " $force " != ' yes ' ]; then
24- echo " Error: user admin exists"
23+ if [ ! -z " $( grep ^admin: /etc/group) " ] && [ -z " $1 " ]; then
24+ echo " Error: group admin exists"
2525 echo
2626 echo ' Please remove admin user account before proceeding.'
2727 echo ' If you want to do it automatically run installer with -f option:'
You can’t perform that action at this time.
0 commit comments