Browse Source

Extend enable/disable api function.

Raphael Schneeberger 7 years ago
parent
commit
c6f3045223
2 changed files with 8 additions and 4 deletions
  1. 4 2
      install/hst-install-debian.sh
  2. 4 2
      install/hst-install-ubuntu.sh

+ 4 - 2
install/hst-install-debian.sh

@@ -1313,9 +1313,11 @@ fi
 #                       Configure API                      #
 #                       Configure API                      #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-if [ "$api" = 'no' ]; then
-    rm -r $HESTIA/web/api
+if [ "$api" = 'yes' ]; then
     echo "API='no'" >> $HESTIA/conf/hestia.conf
     echo "API='no'" >> $HESTIA/conf/hestia.conf
+else
+    rm -r $HESTIA/web/api
+    echo "API='yes'" >> $HESTIA/conf/hestia.conf
 fi
 fi
 
 
 
 

+ 4 - 2
install/hst-install-ubuntu.sh

@@ -1285,9 +1285,11 @@ fi
 #                       Configure API                      #
 #                       Configure API                      #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
-if [ "$api" = 'no' ]; then
-    rm -r $HESTIA/web/api
+if [ "$api" = 'yes' ]; then
     echo "API='no'" >> $HESTIA/conf/hestia.conf
     echo "API='no'" >> $HESTIA/conf/hestia.conf
+else
+    rm -r $HESTIA/web/api
+    echo "API='yes'" >> $HESTIA/conf/hestia.conf
 fi
 fi