X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=1f6771e8d2c116d5aa2a1e90e3e2c1bb71533239;hb=5745176be6c89aa3ac461cc46953e09920266674;hp=397757c89bb6e1b9f9776040083798142ff75fa1;hpb=3981fc0eed7c06834b2f49c555e1912a9cd52c6f;p=php5-cn.git diff --git a/debian/postinst b/debian/postinst index 397757c..1f6771e 100755 --- a/debian/postinst +++ b/debian/postinst @@ -4,9 +4,6 @@ set -e [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx -# Source debconf library. -. /usr/share/debconf/confmodule - case "$1" in configure) # continue below @@ -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 - 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 @@ -167,14 +164,14 @@ done 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 - invoke-rc.d apache2 restart || exit $? + invoke-rc.d apache2 force-reload || true else - /etc/init.d/apache2 restart || exit $? + /etc/init.d/apache2 force-reload || true fi fi else