Browse Source

Use var instead of string

Jaap Marcus 5 years ago
parent
commit
d0077b8c1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      func/upgrade.sh

+ 1 - 1
func/upgrade.sh

@@ -675,7 +675,7 @@ upgrade_rainloop(){
 }
 }
 
 
 disable_api(){
 disable_api(){
-    if [ "API" = "no" ]; then
+    if [ "$API" = "no" ]; then
         echo "[ ! ] Disable Api..."
         echo "[ ! ] Disable Api..."
         sed -i 's|//die("Error: Disabled");|die("Error: Disabled");|g' $HESTIA/web/api/index.php
         sed -i 's|//die("Error: Disabled");|die("Error: Disabled");|g' $HESTIA/web/api/index.php
     fi
     fi