From e5608b4aebeab97b9ea633dc4f5fba121f3b5387 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sun, 16 Mar 2014 21:22:42 +0200 Subject: [PATCH] fix for nginx tpl verification on restore --- bin/v-restore-user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/v-restore-user b/bin/v-restore-user index a515dab94a..1615e6ce66 100755 --- a/bin/v-restore-user +++ b/bin/v-restore-user @@ -257,9 +257,9 @@ if [ "$web" != 'no' ]; then # Check proxy template if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then - if [ ! -e "$WEBTPL/$PROXY_SYSTEM/$TPL.tpl" ]; then + if [ ! -e "$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl" ]; then PROXY="default" - if [ ! -e "$WEBTPL/$PROXY_SYSTEM/$TPL.tpl" ]; then + if [ ! -e "$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl" ]; then echo "Error: no avaiable proxy template" echo "No available proxy tpl" |\ $send_mail -s "$subj" $email