Permalink
Browse files

fixed additional ftp account issue for username which starts with digits

  • Loading branch information...
serghey-rodin committed Mar 12, 2014
1 parent 53abae6 commit d77cb6ca82f459ea4fbac501f548d16ae7491c33
Showing with 2 additions and 2 deletions.
  1. +1 −1 bin/v-add-web-domain-ftp
  2. +1 −1 func/rebuild.sh
@@ -65,7 +65,7 @@ fi
/usr/sbin/useradd $ftp_user \
-s $shell \
-o -u $(id -u $user) \
-g $user \
-g $(id -u $user) \
-M -d "$HOMEDIR/$user/web/$domain" > /dev/null 2>&1
echo "$ftp_user:$ftp_password" | /usr/sbin/chpasswd
ftp_md5="$(awk -v user=$ftp_user -F : 'user == $1 {print $2}' /etc/shadow)"
@@ -328,7 +328,7 @@ rebuild_web_domain_conf() {
/usr/sbin/useradd $FTP_USER \
-s $shell \
-o -u $(id -u $user) \
-g $user \
-g $(id -u $user) \
-M -d "$HOMEDIR/$user/web/$domain" > /dev/null 2>&1

# Update password

0 comments on commit d77cb6c

Please sign in to comment.