rc: move all template generation to early

It's unlikely the config.xml will change and backup scripts in
early are going to need it anyway.
This commit is contained in:
Franco Fichtner 2019-02-10 13:13:29 +01:00
parent afcbdee036
commit da690969c4
4 changed files with 5 additions and 10 deletions

2
plist
View File

@ -121,7 +121,7 @@
/usr/local/etc/rc.syshook.d/carp/20-openvpn
/usr/local/etc/rc.syshook.d/early/05-update
/usr/local/etc/rc.syshook.d/early/10-configd
/usr/local/etc/rc.syshook.d/early/15-php
/usr/local/etc/rc.syshook.d/early/15-templates
/usr/local/etc/rc.syshook.d/early/20-backup
/usr/local/etc/rc.syshook.d/start/10-newwanip
/usr/local/etc/rc.syshook.d/start/20-freebsd

View File

@ -1,5 +0,0 @@
#!/bin/sh
# php.ini is chained into this template, required by backend
echo -n "Configuring PHP: "
configctl template reload OPNsense/WebGui

View File

@ -0,0 +1,4 @@
#!/bin/sh
echo -n "Generating configuration: "
configctl template reload \*

View File

@ -1,8 +1,4 @@
#!/bin/sh
# services need their configuration
echo -n "Configuring additional services: "
configctl template reload \*
# start up the configured services
/usr/local/etc/rc.freebsd start