summaryrefslogtreecommitdiffstats
path: root/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-21 18:44:35 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-21 18:44:35 -0500
commit7f16265af9153cc6bad097379061f7996c9a6171 (patch)
tree3c1ce22a46e4d03c612038622052dd995c47b24c /etc/rc.php_ini_setup
parentfcdf949220cdbd61bfd9a4ed12967ec291b45073 (diff)
downloadpfsense-7f16265af9153cc6bad097379061f7996c9a6171.zip
pfsense-7f16265af9153cc6bad097379061f7996c9a6171.tar.gz
Ensure dynamodules directory exists
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-xetc/rc.php_ini_setup6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup
index b3efd52..0a6197d 100755
--- a/etc/rc.php_ini_setup
+++ b/etc/rc.php_ini_setup
@@ -138,6 +138,12 @@ extension_dir=${EXTENSIONSDIR}
; Extensions
EOF
+# Ensure directory exists
+if [ ! -d /etc/php_dynamodules ]; then
+ mkdir /etc/php_dynamodules
+fi
+
+# Read in dynamodules
if [ -d /etc/php_dynamodules ]; then
DYNA_MODULES=`ls /etc/php_dynamodules/`
PHPMODULES="$PHPMODULES $DYNA_MODULES"
OpenPOWER on IntegriCloud