mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
trigger firewall update on ip functions
This commit is contained in:
parent
ebe8173af1
commit
42b8ac31dd
3 changed files with 37 additions and 10 deletions
|
@ -121,15 +121,23 @@ else
|
|||
decrease_user_value "$OWNER" '$IP_AVAIL'
|
||||
fi
|
||||
|
||||
# Adding task to the vesta pipe
|
||||
# Restarting web server
|
||||
$BIN/v-restart-web
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
||||
$BIN/v-restart-proxy
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
# Restarting proxy server
|
||||
if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||
$BIN/v-restart-proxy
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
fi
|
||||
|
||||
# Restarting firewall
|
||||
if [ ! -z "$FIREWALL_SYSTEM" ];
|
||||
$BIN/v-update-firewall
|
||||
fi
|
||||
|
||||
# Logging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue