suspend/unsuspend additional ftp accounts

This commit is contained in:
Serghey Rodin 2015-06-03 18:40:10 +03:00
commit 3f12b04cfa
2 changed files with 10 additions and 0 deletions

View file

@ -37,6 +37,11 @@ fi
# Deleting '!' in front of the password
/usr/sbin/usermod --unlock $user
# Unsuspending ftp accounts
for ftp in $(grep ^$user_.* /etc/passwd| cut -f 1 -d : ); do
/usr/sbin/usermod --unlock $ftp 2>/dev/null
done
# Unsuspending web domains
if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB_SYSTEM" != 'no' ]; then
$BIN/v-unsuspend-web-domains $user $restart