mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Added user tab triggers. Issue #50
This commit is contained in:
parent
0bab5ef8f9
commit
745318e14e
4 changed files with 12 additions and 0 deletions
|
@ -208,6 +208,11 @@ U_CRON_JOBS='0'
|
|||
DATE='$V_DATE'" > $V_USERS/$user/user.conf
|
||||
chmod 660 $V_USERS/$user/user.conf
|
||||
|
||||
# Updating admin counter
|
||||
if [ "$user" != 'admin' ]; then
|
||||
increase_user_value 'admin' '$U_USERS'
|
||||
fi
|
||||
|
||||
# Hiding password
|
||||
V_EVENT="$V_DATE $V_SCRIPT $user ***** $email $package $fname $lname"
|
||||
|
||||
|
|
|
@ -124,6 +124,11 @@ rm -f /var/spool/mail/$user
|
|||
rm -f /var/spool/cron/$user
|
||||
rm -rf $V_USERS/$user
|
||||
|
||||
# Updating admin counter
|
||||
if [ "$user" != 'admin' ]; then
|
||||
decrease_user_value 'admin' '$U_USERS'
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
|
|
|
@ -82,6 +82,7 @@ restart_schedule 'dns'
|
|||
|
||||
# Changing suspend value
|
||||
update_user_value "$user" '$SUSPENDED' 'yes'
|
||||
increase_user_value 'admin' '$SUSPENDED_USERS'
|
||||
|
||||
# Logging
|
||||
log_event 'system' "$V_EVENT"
|
||||
|
|
|
@ -79,6 +79,7 @@ restart_schedule 'dns'
|
|||
|
||||
# Changing suspend value
|
||||
update_user_value "$user" '$SUSPENDED' 'no'
|
||||
decrease_user_value 'admin' '$SUSPENDED_USERS'
|
||||
|
||||
# Logging
|
||||
log_event 'system' "$V_EVENT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue