mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
suspend/unsuspend additional ftp accounts
This commit is contained in:
parent
a5ff23de74
commit
3f12b04cfa
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue