projects
/
php5-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r11:
[php5-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
1f6771e
..
cbb3a37
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-25,7
+25,7
@@
esac
PKG="php5-cn"
A2MODEDIR="/etc/apache2/mods-enabled"
PKG="php5-cn"
A2MODEDIR="/etc/apache2/mods-enabled"
-EXTENSIONS="mysql ldap gd"
+EXTENSIONS="mysql"
PHP5DIR="/etc/php5"
PHP5CONFD="/etc/php5/conf.d"
PHP5DIR="/etc/php5"
PHP5CONFD="/etc/php5/conf.d"
@@
-48,7
+48,7
@@
if [ -e /etc/apache2/apache2.conf ]; then
fi
fi
-# Check if PHP5 extensions (MySQL, LDAP, GD) are enabled.
+# Check if PHP5 extensions are enabled.
#
for php5ext in $EXTENSIONS; do
#
for php5ext in $EXTENSIONS; do
@@
-70,6
+70,12
@@
for php5ext in $EXTENSIONS; do
fi
done
fi
done
+ # Check $PHP5CONFD directory.
+ if [ ! -d "$PHP5CONFD" ]; then
+ cp_echo "CN: Creating configuration directory $PHP5CONFD"
+ mkdir $PHP5CONFD
+ fi
+
# Check extension configuration in /etc/php5/conf.d/ directory.
if [ ! -f "$PHP5CONFD/$php5ext.ini" ]; then
# Check extension configuration in /etc/php5/conf.d/ directory.
if [ ! -f "$PHP5CONFD/$php5ext.ini" ]; then