mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Code refactoring: domain_idn + new restart routine
This commit is contained in:
parent
b98abaf572
commit
e5950d516d
104 changed files with 605 additions and 588 deletions
|
@ -77,16 +77,14 @@ update_user_value "$user" '$SUSPENDED' 'no'
|
|||
decrease_user_value 'admin' '$SUSPENDED_USERS'
|
||||
|
||||
# Restarting system services
|
||||
if [ "$restart" != 'no' ]; then
|
||||
$BIN/v-restart-web
|
||||
check_result $? "Web restart failed" >/dev/null
|
||||
$BIN/v-restart-web $restart
|
||||
check_result $? "Web restart failed" >/dev/null
|
||||
|
||||
$BIN/v-restart-dns
|
||||
check_result $? "DNS restart failed" >/dev/null
|
||||
$BIN/v-restart-dns $restart
|
||||
check_result $? "DNS restart failed" >/dev/null
|
||||
|
||||
$BIN/v-restart-cron
|
||||
check_result $? "Cron restart failed" >/dev/null
|
||||
fi
|
||||
$BIN/v-restart-cron $restart
|
||||
check_result $? "Cron restart failed" >/dev/null
|
||||
|
||||
# Logging
|
||||
log_event "$OK" "$ARGUMENTS"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue