From 46324240b434a17a0cf80b317aeb14c5bb2b56d8 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 15 Mar 2016 22:20:52 +0100 Subject: [PATCH] Yet^9 another bugfix to pre/postinst script --- BuildFiles/Packaging/templates/postinst-frontend.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildFiles/Packaging/templates/postinst-frontend.template b/BuildFiles/Packaging/templates/postinst-frontend.template index 0809f980..63c0b5ae 100644 --- a/BuildFiles/Packaging/templates/postinst-frontend.template +++ b/BuildFiles/Packaging/templates/postinst-frontend.template @@ -10,7 +10,7 @@ if [ ! -e /var/lib/swarmops/upload ]; then # # If there's only 000-default in apache sites, assume new install - if "$(ls -l /etc/apache2/sites-enabled/ | wc -l)" = "2" ; 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);