Commit 90bae8e7 authored by Franco Fichtner's avatar Franco Fichtner

firmware: regenerate php.ini after an upgrade

PHP plugins may change and then clobber the custom php.ini we have
previously generated.  To make sure everything keeps running smoothly,
always regerate it directly after an upgrade, even though there may
have been no changes.
parent 4e0b972a
...@@ -52,7 +52,9 @@ if [ -z "$pkg_running" ]; then ...@@ -52,7 +52,9 @@ if [ -z "$pkg_running" ]; then
/usr/local/opnsense/scripts/pkg_updatecheck.sh /usr/local/opnsense/scripts/pkg_updatecheck.sh
echo '***DONE***' >> /tmp/pkg_upgrade.progress echo '***DONE***' >> /tmp/pkg_upgrade.progress
fi fi
# regenerate php.ini after upgrade to avoid spurious output
/usr/local/etc/rc.php_ini_setup
else else
echo 'Upgrade already in progress' >> /tmp/pkg_upgrade.progress echo 'Upgrade already in progress' >> /tmp/pkg_upgrade.progress
echo '***DONE***' >> /tmp/pkg_upgrade.progress echo '***DONE***' >> /tmp/pkg_upgrade.progress
fi fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment