Commit 77667027 authored by Franco Fichtner's avatar Franco Fichtner

rc: properly create php template on first boot

PR: https://forum.opnsense.org/index.php?topic=5213.0

(cherry picked from commit ed66e872)
(cherry picked from commit 93d68f77)
parent a8ff5244
......@@ -135,6 +135,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
......
......@@ -234,6 +234,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
echo -n "Configuring PHP: "
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