Skip to content

Commit 12a6ec6

Browse files
committed
fix for admin user check
1 parent 1e97311 commit 12a6ec6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/vst-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ "x$(id -u)" != 'x0' ]; then
1010
fi
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
2020
fi
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:'

0 commit comments

Comments
 (0)