X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=php4-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=034b224d89b66462b77f960f8462f19eb6d7bf87;hp=a806b2bdac15cfa852890641c9f1d4317d526821;hb=c6ad045eb89e880ffa34599c751488db78766a7e;hpb=ac3f1fcff2b82980e6b2dda58ecd3339833b8764 diff --git a/debian/postinst b/debian/postinst index a806b2b..034b224 100755 --- a/debian/postinst +++ b/debian/postinst @@ -25,7 +25,7 @@ esac PKG="php4-cn" A2MODEDIR="/etc/apache2/mods-enabled" -EXTENSIONS="mysql ldap gd" +EXTENSIONS="mysql" PHP4DIR="/etc/php4" PHP4CONFD="/etc/php4/conf.d" @@ -48,7 +48,7 @@ if [ -e /etc/apache2/apache2.conf ]; then fi -# Check if PHP4 extensions (MySQL, LDAP, GD) are enabled. +# Check if PHP4 extensions are enabled. # for php4ext in $EXTENSIONS; do @@ -70,6 +70,12 @@ for php4ext in $EXTENSIONS; do fi done + # Check $PHP4CONFD directory. + if [ ! -d "$PHP4CONFD" ]; then + cp_echo "CN: Creating configuration directory $PHP4CONFD" + mkdir $PHP4CONFD + fi + # Check extension configuration in /etc/php4/conf.d/ directory. if [ ! -f "$PHP4CONFD/$php4ext.ini" ]; then