Small fixes to scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user