]> git.donarmstrong.com Git - roundcube.git/blobdiff - debian/roundcube-core.postinst
Reload web server configuration instead of restart, thanks to a patch
[roundcube.git] / debian / roundcube-core.postinst
index fe3094f50915dac8b0720cc1549a579f5c264b1d..5e7e0e223a9f7a71b1c76dd7387eb67fe79a61cf 100644 (file)
@@ -23,7 +23,7 @@ lighttpd_install() {
                        echo "Lighttpd not installed, skipping"
                else
                        ln -s /etc/roundcube/lighttpd.conf /etc/lighttpd/conf-available/50-roundcube.conf
-                       /usr/sbin/lighty-enable-mod roundcube
+                       lighty-enable-mod roundcube
                fi
        fi
 }
@@ -151,10 +151,12 @@ EOF
        if [ "$res" = "true" ]; then
             for webserver in $restart; do
                webserver=${webserver%,}
+               # Redirection of 3 is needed because Debconf uses it and it might
+                # be inherited by webserver. See bug #446324.
                if [ -x /usr/sbin/invoke-rc.d ]; then
-                    invoke-rc.d $webserver restart
+                    invoke-rc.d $webserver reload 3>/dev/null || true
                else
-                    /etc/init.d/$webserver restart
+                    /etc/init.d/$webserver reload 3>/dev/null || true
                fi
             done
        fi