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
This commit is contained in:
Franco Fichtner 2017-05-24 20:28:46 +02:00
parent fe571ac442
commit ed66e8728d
3 changed files with 11 additions and 0 deletions

1
plist
View File

@ -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

View File

@ -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

View File

@ -0,0 +1,4 @@
#!/bin/sh
# php.ini is chained into this template, required by backend
configctl template reload OPNsense/WebGui