From 916be554889b051200c08b196e9a8e45c6077d14 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 28 Jun 2018 18:42:27 +0200 Subject: [PATCH] Move regenconf after the paching of dnsmasq --- debian/postinst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/debian/postinst b/debian/postinst index 3aef1165..f5e0c15e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -11,10 +11,7 @@ do_configure() { bash /usr/share/yunohost/hooks/conf_regen/06-slapd init bash /usr/share/yunohost/hooks/conf_regen/15-nginx init else - echo "Regenerating configuration, this might take a while..." - yunohost service regen-conf --output-as none - - echo "Patch Dnsmasq service" + echo "Patching dnsmasq service" DNSMASQ_PATCH=$(cat << 'EOF' index 46abdc4..49556ad 100644 (file) --- a/debian/init @@ -30,9 +27,11 @@ index 46abdc4..49556ad 100644 (file) start() EOF ) - patch -N /etc/init.d/dnsmasq <<< "$DNSMASQ_PATCH" || true + echo "Regenerating configuration, this might take a while..." + yunohost service regen-conf --output-as none + echo "Launching migrations.." yunohost tools migrations migrate --auto