mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -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
|
fi
|
||||||
|
|
||||||
# Check admin user account
|
# 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 "Error: user admin exists"
|
||||||
echo
|
echo
|
||||||
echo 'Please remove admin user account before proceeding.'
|
echo 'Please remove admin user account before proceeding.'
|
||||||
|
@ -20,8 +20,8 @@ if [ ! -z "$(grep ^admin: /etc/passwd)" ] && [ "$force" != 'yes' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check admin user account
|
# Check admin user account
|
||||||
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ "$force" != 'yes' ]; then
|
if [ ! -z "$(grep ^admin: /etc/group)" ] && [ -z "$1" ]; then
|
||||||
echo "Error: user admin exists"
|
echo "Error: group admin exists"
|
||||||
echo
|
echo
|
||||||
echo 'Please remove admin user account before proceeding.'
|
echo 'Please remove admin user account before proceeding.'
|
||||||
echo 'If you want to do it automatically run installer with -f option:'
|
echo 'If you want to do it automatically run installer with -f option:'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue