mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
Merge pull request #612 from teryanik/master
Fix bug with "user already exists"
This commit is contained in:
commit
745769dab8
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
|
||||||
is_user_free() {
|
is_user_free() {
|
||||||
check_sysuser=$(cut -f 1 -d : /etc/passwd | grep -w "$user" )
|
check_sysuser=$(cut -f 1 -d : /etc/passwd | grep "^$user$" )
|
||||||
if [ ! -z "$check_sysuser" ] || [ -e "$USER_DATA" ]; then
|
if [ ! -z "$check_sysuser" ] || [ -e "$USER_DATA" ]; then
|
||||||
check_result $E_EXISTS "user $user exists"
|
check_result $E_EXISTS "user $user exists"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue