From 52e489066c3a31da01169e25549723c2c50cc2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Ondr=C3=A1=C4=8Dek?= <ondracek.roman@centrum.cz> Date: Tue, 14 Apr 2020 22:07:27 +0200 Subject: [PATCH] Debian packaging: fix Apache2 configuration installation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roman Ondráček <ondracek.roman@centrum.cz> --- debian/postinst | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/debian/postinst b/debian/postinst index a5094f185..fa87e746a 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,7 +1,7 @@ #!/bin/sh # postinst script for iqrf-gateway-webapp -set -e +set -ex nginx_virtualhost_install() { nginx_virtualhost_old_remove @@ -86,9 +86,13 @@ if [ "$1" = "configure" ]; then webapp_repair_premissions fi -if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then - . /usr/share/apache2/apache2-maintscript-helper - apache2_invoke enmod deflate filter headers http2 rewrite ssl - apache2_invoke dissite 000-default.conf - apache2_invoke ensite iqrf-gateway-webapp.conf || exit 1 +if true; then + if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then + . /usr/share/apache2/apache2-maintscript-helper + for mod in deflate filter headers http2 rewrite ssl ; do + apache2_invoke enmod $mod || true + done + apache2_invoke dissite 000-default.conf || true + apache2_invoke ensite iqrf-gateway-webapp.conf || exit 1 + fi fi -- GitLab