mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
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:
parent
fe571ac442
commit
ed66e8728d
1
plist
1
plist
@ -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
|
||||
|
||||
4
src/etc/rc.syshook.d/15-php.early
Executable file
4
src/etc/rc.syshook.d/15-php.early
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
# php.ini is chained into this template, required by backend
|
||||
configctl template reload OPNsense/WebGui
|
||||
Loading…
x
Reference in New Issue
Block a user