projects
/
php5-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r10:
[php5-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
397757c
..
5b9d290
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-4,9
+4,6
@@
set -e
[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
case "$1" in
configure)
# continue below
case "$1" in
configure)
# continue below
@@
-28,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"
@@
-51,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
@@
-126,7
+123,7
@@
for SAPI in apache apache2 cgi cli; do
's/^[[:space:]]*upload_max_filesize[[:space:]]*=.*/upload_max_filesize = 256M/' \
"$ini_file" && need_restart=1 || true
's/^[[:space:]]*upload_max_filesize[[:space:]]*=.*/upload_max_filesize = 256M/' \
"$ini_file" && need_restart=1 || true
- cp_check_and_sed "^[[:space:]]*post_max_size[[:space]]*=[[:space:]]*8M$" \
+ cp_check_and_sed "^[[:space:]]*post_max_size[[:space:]]*=[[:space:]]*8M$" \
's/^[[:space:]]*post_max_size[[:space:]]*=.*/post_max_size = 256M/' \
"$ini_file" && need_restart=1 || true
's/^[[:space:]]*post_max_size[[:space:]]*=.*/post_max_size = 256M/' \
"$ini_file" && need_restart=1 || true
@@
-167,14
+164,14
@@
done
if [ $need_restart -eq 1 ]; then
# Check Apache2 web server configuration.
if [ $need_restart -eq 1 ]; then
# Check Apache2 web server configuration.
- if apache2ctl configtest 2>/dev/null; then
+ if /usr/sbin/apache2ctl configtest 2>/dev/null; then
# Restart Apache2 web server.
if [ -x "/etc/init.d/apache2" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
# Restart Apache2 web server.
if [ -x "/etc/init.d/apache2" ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d apache2 restart || exit $?
+ invoke-rc.d apache2 force-reload || true
else
else
- /etc/init.d/apache2 restart || exit $?
+ /etc/init.d/apache2 force-reload || true
fi
fi
else
fi
fi
else