trigger firewall update on ip functions

This commit is contained in:
Serghey Rodin 2015-04-17 16:11:27 +03:00
commit 42b8ac31dd
3 changed files with 37 additions and 10 deletions

View file

@ -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