Templates: check if scripts exists, otherwise can skip

This commit is contained in:
Franco Fichtner 2018-04-29 16:15:55 +02:00
parent 676cb70a90
commit c05da27cce
3 changed files with 3 additions and 5 deletions

View File

@ -1 +1 @@
/usr/local/opnsense/mvc/script/run_migrations.php %%ARG%%
if [ -f /usr/local/opnsense/mvc/script/run_migrations.php ]; then /usr/local/opnsense/mvc/script/run_migrations.php %%ARG%%; fi

View File

@ -1,2 +1 @@
echo "Reloading firmware configuration"
/usr/local/etc/rc.configure_firmware
if [ -f /usr/local/etc/rc.configure_firmware ]; then echo "Reloading firmware configuration"; /usr/local/etc/rc.configure_firmware; fi

View File

@ -1,2 +1 @@
echo -n "Reloading template %%ARG%%: "
/usr/local/sbin/configctl template reload %%ARG%%
if [ -f /usr/local/sbin/configctl ]; then echo -n "Reloading template %%ARG%%: "; /usr/local/sbin/configctl template reload %%ARG%%; fi