From: František Dvořák Date: Mon, 19 Sep 2016 14:50:56 +0000 (+0200) Subject: NOW: load passenger modu automatically (without restarting apache though) X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=367ab2fa7dd56142909eb79d024df85051affbe7;p=packaging-deb-NOW.git NOW: load passenger modu automatically (without restarting apache though) --- diff --git a/NOW/debian/now-apache.postinst b/NOW/debian/now-apache.postinst new file mode 100644 index 0000000..0b09272 --- /dev/null +++ b/NOW/debian/now-apache.postinst @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +case "$1" in + configure|reconfigure) + if [ -e /etc/apache2/apache2.conf ]; then + a2enmod passenger >/dev/null || : + fi + ;; +esac + +#DEBHELPER# diff --git a/NOW/debian/preinst b/NOW/debian/preinst index 7eac864..9626dbf 100644 --- a/NOW/debian/preinst +++ b/NOW/debian/preinst @@ -1,6 +1,4 @@ #!/bin/sh -# preinst script for NOW - set -e case "$1" in