mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
fix for admin user check
This commit is contained in:
parent
1e9731132a
commit
12a6ec673f
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ if [ "x$(id -u)" != 'x0' ]; then
|
|||
fi
|
||||
|
||||
# Check admin user account
|
||||
if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then
|
||||
if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ -z "$1" ]; then
|
||||
echo "Error: user admin exists"
|
||||
echo
|
||||
echo 'Please remove admin user account before proceeding.'
|
||||
|
@ -20,8 +20,8 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then
|
|||
fi
|
||||
|
||||
# Check admin user account
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then
|
||||
echo "Error: user admin exists"
|
||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ -z "$1" ]; then
|
||||
echo "Error: group admin exists"
|
||||
echo
|
||||
echo 'Please remove admin user account before proceeding.'
|
||||
echo 'If you want to do it automatically run installer with -f option:'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue