From fff0bc2bc1e8ac412ffffa8f16e742b48c2f06d7 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 15 Mar 2016 22:07:56 +0100 Subject: [PATCH] Yet^7 another bugfix to pre/postinst script --- BuildFiles/Packaging/templates/preinst-frontend.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildFiles/Packaging/templates/preinst-frontend.template b/BuildFiles/Packaging/templates/preinst-frontend.template index 30276580..3c781403 100644 --- a/BuildFiles/Packaging/templates/preinst-frontend.template +++ b/BuildFiles/Packaging/templates/preinst-frontend.template @@ -5,7 +5,7 @@ # installer to just bloody hang.) if [ ! -e /etc/swarmops/database.config ]; then - if [ ! -e /etc/init.d/apache2 ]; then + if [ -e /etc/init.d/apache2 ]; then if /etc/init.d/apache2 status > /dev/null; then # Set a flag to postinst to restart Apache echo foo > /tmp/swarmops-restart-apache.flag