diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-07-13 18:37:11 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-07-13 18:37:11 -0400 |
commit | 00b9730d6fe20272a40e707b709e677a847b7863 (patch) | |
tree | 8c7b3aa442e264a88bf4b1e7897043a72020569d /etc/rc.php_ini_setup | |
parent | 427fa49cd7761c222c67e49d155188cca5b18d46 (diff) | |
download | pfsense-00b9730d6fe20272a40e707b709e677a847b7863.zip pfsense-00b9730d6fe20272a40e707b709e677a847b7863.tar.gz |
Only load modules once
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-x | etc/rc.php_ini_setup | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 49bc9cc..626e61e 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -295,6 +295,8 @@ for EXT in $PHPMODULES; do PHPMODULESLC="$PHPMODULESLC `echo "$EXT" | /usr/bin/tr '[:upper:]' '[:lower:]'`" done +PHPMODULES=`echo $PHPMODULES | sort -u` + # Check loaded modules and remove anything that did not load correctly LOADED_MODULES=`/usr/local/bin/php -m | /usr/bin/tr '[:upper:]' '[:lower:]' 2>/dev/null | /usr/bin/grep -v "\["` for EXT in $PHPMODULESLC; do |