check_result function

This commit is contained in:
Serghey Rodin 2015-10-28 16:34:41 +02:00
commit 91a804c1c8
66 changed files with 204 additions and 404 deletions

View file

@ -11,6 +11,7 @@
# Argument defenition
user=$1
restart=$2
# Includes
source $VESTA/func/main.sh
@ -41,10 +42,10 @@ done
# Vesta #
#----------------------------------------------------------#
# Restart named
$BIN/v-restart-dns
if [ $? -ne 0 ]; then
exit $E_RESTART
# Restarting named
if [ "$restart" != 'no' ]; then
$BIN/v-restart-dns
check_result $? "Bind restart failed" >/dev/null
fi
# Logging