File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,17 @@ check_hestia_demo_mode
3535# ----------------------------------------------------------#
3636
3737if [ " $status " = " enable" ]; then
38- if [ $API = " no" ]; then
39- if [ ! -f " $HESTIA /web/api/index.php" ]; then
40- wget -q https://raw.githubusercontent.com/hestiacp/hestiacp/release/web/api/index.php -O $HESTIA /web/api/index.php
41- else
42- sed -i ' s|die("Error: Disabled");|//die("Error: Disabled");|g' $HESTIA /web/api/index.php
43- fi
44- $HESTIA /bin/v-change-sys-config-value " API" " yes"
38+ if [ ! -f " $HESTIA /web/api/index.php" ]; then
39+ wget -q https://raw.githubusercontent.com/hestiacp/hestiacp/release/web/api/index.php -O $HESTIA /web/api/index.php
40+ else
41+ sed -i ' s|die("Error: Disabled");|//die("Error: Disabled");|g' $HESTIA /web/api/index.php
42+ sed -i ' s|////|//|g' $HESTIA /web/api/index.php
4543 fi
44+ $HESTIA /bin/v-change-sys-config-value " API" " yes"
4645else
47- if [ $API = " yes" ]; then
48- $HESTIA /bin/v-change-sys-config-value " API" " no"
49- $HESTIA /bin/v-change-sys-config-value " API_ALLOWED_IP" " "
50- sed -i ' s|//die("Error: Disabled");|die("Error: Disabled");|g' $HESTIA /web/api/index.php
51- fi
46+ $HESTIA /bin/v-change-sys-config-value " API" " no"
47+ $HESTIA /bin/v-change-sys-config-value " API_ALLOWED_IP" " "
48+ sed -i ' s|//die("Error: Disabled");|die("Error: Disabled");|g' $HESTIA /web/api/index.php
5249fi
5350
5451# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments