diff options
author | Renato Botelho <renato@netgate.com> | 2017-04-19 08:30:23 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-04-19 08:32:26 -0300 |
commit | b4f3beec07dbb69a7e1cdbf46d5249dde3ca26df (patch) | |
tree | 75ae2699cb3c9bb18b351719a8e8d06806da092c /src/etc/rc.packages | |
parent | 4333564ab4373a629cc6121fdfe410b959ff44bf (diff) | |
download | pfsense-b4f3beec07dbb69a7e1cdbf46d5249dde3ca26df.zip pfsense-b4f3beec07dbb69a7e1cdbf46d5249dde3ca26df.tar.gz |
Fix installation of extra packages at build time relaxing check for running PHP instance and moving it to the top before any require_once() attempt runs
Diffstat (limited to 'src/etc/rc.packages')
-rwxr-xr-x | src/etc/rc.packages | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/etc/rc.packages b/src/etc/rc.packages index b0f37b3..8a6f886 100755 --- a/src/etc/rc.packages +++ b/src/etc/rc.packages @@ -20,6 +20,11 @@ * limitations under the License. */ +/* If PHP is not running, silently abort and run registration during boot */ +if (!file_exists('/var/run/php-fpm.pid')) { + exit; +} + require_once("config.inc"); require_once("functions.inc"); require_once("filter.inc"); @@ -41,11 +46,6 @@ if ($argc == 1) { exit; } -/* If PHP is not running, silently abort and run registration during boot */ -if (!isvalidpid('/var/run/php-fpm.pid')) { - exit; -} - $pkg = ''; $when = ''; |