EvilPortal: Disable nginx uci config on install so it uses the proper config

file
dev-apiservice-update
Mike Kershaw / Dragorn 2022-04-18 17:17:55 -04:00
parent 172e71859e
commit 34f719e724
2 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@
"title": "Evil Portal",
"description": "An evil captive portal for the WiFi Pineapple.",
"author": "newbi3",
"version": "1.4",
"version": "1.5",
"firmware_required": "1.0.0",
"devices": ["wifipineapplemk7"]
}

View File

@ -45,6 +45,9 @@ def _post_install(job: OpkgJob):
os.system(f'cp {_ASSETS_PATH}/evilportal.sh /etc/init.d/evilportal')
os.system('chmod +x /etc/init.d/evilportal')
os.system('uci set nginx.global.uci_enable=false')
os.system('uci commit')
def _deactivate_portal(name: str) -> bool:
# return false if the portal is not active