Commit ed66e872 authored by Franco Fichtner's avatar Franco Fichtner

rc: properly create php template on first boot

rc.recover doesn't work like that then, need to move to /bin/sh.

PR: https://forum.opnsense.org/index.php?topic=5213.0
parent fe571ac4
......@@ -133,6 +133,7 @@
/usr/local/etc/rc.syshook.d/05-beep.stop
/usr/local/etc/rc.syshook.d/05-update.early
/usr/local/etc/rc.syshook.d/10-configd.early
/usr/local/etc/rc.syshook.d/15-php.early
/usr/local/etc/rc.syshook.d/20-backup.early
/usr/local/etc/rc.syshook.d/20-freebsd.start
/usr/local/etc/rc.syshook.d/80-freebsd.stop
......
......@@ -94,6 +94,7 @@ else
fi
# regenerate groups and users for base
# XXX port this to POSIX shell:
/usr/local/etc/rc.recover base > /dev/null
# set keyboard map if needed
......@@ -226,6 +227,7 @@ fi
echo "done."
# Regenerate groups and users for packages
# XXX port this to POSIX shell:
/usr/local/etc/rc.recover pkg > /dev/null 2> /dev/null
# Recreate capabilities DB
......@@ -234,6 +236,10 @@ echo "done."
# Execute the early syshook / plugin commands
/usr/local/etc/rc.syshook early
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !!! PHP starts working here, not earlier !!!
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Let the PHP-based configuration subsystem set up the system now
echo -n "Launching the init system..."
touch /var/run/booting
......
#!/bin/sh
# php.ini is chained into this template, required by backend
configctl template reload OPNsense/WebGui
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment