0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-06 08:13:09 +00:00
Files
packages/net/hs20/files/hs20-server.defaults
Michael Heimpold b22aa5b9e6 hs20: switch dependencies to php8
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2021-10-14 14:18:46 +01:00

12 lines
309 B
Bash

#!/bin/sh
uci -q get uhttpd.main.interpreter | grep -q "^\.php" || uci -q batch <<-EOF >/dev/null
add_list uhttpd.main.interpreter='.php=/usr/bin/php8-cgi'
commit uhttpd
EOF
mkdir -p /etc/hs20/AS/DB
[ -e /etc/hs20/AS/DB/eap_user.db ] || sqlite3 /etc/hs20/AS/DB/eap_user.db < /usr/share/hs20/sql.txt
exit 0