From 244532023d6414339a410b7e05c7a542ec5aacde Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Sun, 28 Feb 2016 14:11:47 -0500 Subject: [PATCH] added line to delete default config --- scripts/GMG/15_install_gmg.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/GMG/15_install_gmg.sh b/scripts/GMG/15_install_gmg.sh index 68a99f1..0378233 100755 --- a/scripts/GMG/15_install_gmg.sh +++ b/scripts/GMG/15_install_gmg.sh @@ -26,3 +26,7 @@ sed 's^GMG_FQDN_TOKEN^'$fqdn'^g' -i $target/etc/nginx/sites-available/mediagobli # enable nginx config $ROOTCMD ln -s /etc/nginx/sites-available/mediagoblin /etc/nginx/sites-enabled/mediagoblin + +if [ ! -f $target//etc/nginx/sites-enabled/default ]; then + $ROOTCMD rm /etc/nginx/sites-enabled/default +fi -- 2.25.1