mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-08 13:05:39 -05:00
Merge branch 'master' into alpine
This commit is contained in:
commit
1b90e65af5
1 changed files with 3 additions and 3 deletions
|
@ -37,9 +37,9 @@ function createUser() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if $(cat /etc/passwd | cut -d: -f1 | grep -q "$user"); then
|
||||
echo "FATAL: User \"$user\" already exists."
|
||||
exit 2
|
||||
if $(cat /etc/passwd | cut -d: -f1 | grep -q "^$user:"); then
|
||||
echo "WARNING: User \"$user\" already exists. Skipping."
|
||||
return 0
|
||||
fi
|
||||
|
||||
useraddOptions="--no-user-group"
|
||||
|
|
Loading…
Reference in a new issue