Skip to content

Commit 712a59f

Browse files
committed
Add the deletion of API_ALLOWED_IP during upgrade
1 parent e300ea6 commit 712a59f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

func/upgrade.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ disable_api(){
678678
if [ "$API" = "no" ]; then
679679
echo "[ ! ] Disable Api..."
680680
sed -i 's|//die("Error: Disabled");|die("Error: Disabled");|g' $HESTIA/web/api/index.php
681+
$HESTIA/bin/v-change-sys-config-value "API_ALLOWED_IP" ""
681682
fi
682683
}
683684
upgrade_rebuild_web_templates() {

0 commit comments

Comments
 (0)