Skip to content

Commit

Permalink
rc: properly create php template on first boot
Browse files Browse the repository at this point in the history
PR: https://forum.opnsense.org/index.php?topic=5213.0

(cherry picked from commit ed66e87)
(cherry picked from commit 93d68f7)
  • Loading branch information
fichtner committed May 25, 2017
1 parent a8ff524 commit 7766702
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions plist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/etc/rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/etc/rc.syshook.d/15-php.early
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

# php.ini is chained into this template, required by backend
echo -n "Configuring PHP: "
configctl template reload OPNsense/WebGui

0 comments on commit 7766702

Please sign in to comment.