Quellcode durchsuchen

fix for nginx tpl verification on restore

Serghey Rodin vor 12 Jahren
Ursprung
Commit
e5608b4aeb
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      bin/v-restore-user

+ 2 - 2
bin/v-restore-user

@@ -257,9 +257,9 @@ if [ "$web" != 'no' ]; then
 
 
             # Check proxy template
             # Check proxy template
             if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
             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"
                     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 "Error: no avaiable proxy template"
                         echo "No available proxy tpl" |\
                         echo "No available proxy tpl" |\
                             $send_mail -s "$subj" $email
                             $send_mail -s "$subj" $email