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

@ -67,9 +67,7 @@ cat $WEBTPL/$WEB_BACKEND/$template.tpl |\
# Restart backend server
if [ "$restart" != 'no' ]; then
$BIN/v-restart-web-backend
if [ $? -ne 0 ]; then
exit $E_RESTART
fi
check_result $? "Web backend restart failed" >/dev/null
fi
# Logging