From 019fcaae9f2231c2631381159a54a5be638e98b1 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 16 Mar 2016 01:41:58 +0100 Subject: [PATCH] Small fixes to scripts --- BuildFiles/Packaging/templates/postinst-frontend.template | 2 +- BuildFiles/Packaging/templates/preinst-frontend.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BuildFiles/Packaging/templates/postinst-frontend.template b/BuildFiles/Packaging/templates/postinst-frontend.template index 97826855..b1449770 100644 --- a/BuildFiles/Packaging/templates/postinst-frontend.template +++ b/BuildFiles/Packaging/templates/postinst-frontend.template @@ -13,7 +13,7 @@ if [ ! -e /var/lib/swarmops/upload ]; then if [ "$(ls -l /etc/apache2/sites-enabled/ | wc -l)" = "2" ]; then exec 3>&1; - dialog_selection=$(dialog --title "Autoconfigure Apache?" --menu "This seems to be a new installation of Swarmops Frontend on a newly installed Apache. Would you like to create the necessary site directives and make it the default Apache site?" 0 0 3 1 "No thanks, don't touch my Apache, that's for me alone" 2 "Yes please, make Swarmops the default site for port 80" 3 "Create a Swarmops config, please, but don't enable it" 2>&1 1>&3); + dialog_selection=$(dialog --title "Swarmops: Autoconfigure Apache?" --menu "This seems to be a new installation of Swarmops Frontend on a newly installed Apache. Would you like to create the necessary site directives and make Swarmops the default Apache site?" 0 0 3 1 "No thanks, don't touch my Apache, that's for me alone" 2 "Yes please, make Swarmops the default site for port 80" 3 "Create a Swarmops config, please, but don't enable it" 2>&1 1>&3); exec 3>&-; case "$dialog_selection" in diff --git a/BuildFiles/Packaging/templates/preinst-frontend.template b/BuildFiles/Packaging/templates/preinst-frontend.template index 3ce8efb3..f58eb7a5 100644 --- a/BuildFiles/Packaging/templates/preinst-frontend.template +++ b/BuildFiles/Packaging/templates/preinst-frontend.template @@ -6,7 +6,7 @@ if [ ! -e /etc/swarmops/database.config ]; then if [ -e /etc/init.d/apache2 ]; then - if /etc/init.d/apache2 status > /dev/null; 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 /etc/init.d/apache2 stop