summaryrefslogtreecommitdiffstats
path: root/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-07-13 18:37:11 -0400
committerScott Ullrich <sullrich@gmail.com>2011-07-13 18:37:11 -0400
commit00b9730d6fe20272a40e707b709e677a847b7863 (patch)
tree8c7b3aa442e264a88bf4b1e7897043a72020569d /etc/rc.php_ini_setup
parent427fa49cd7761c222c67e49d155188cca5b18d46 (diff)
downloadpfsense-00b9730d6fe20272a40e707b709e677a847b7863.zip
pfsense-00b9730d6fe20272a40e707b709e677a847b7863.tar.gz
Only load modules once
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-xetc/rc.php_ini_setup2
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
OpenPOWER on IntegriCloud