added line to delete default config
authorLisa Marie Maginnis <lisam@fsf.org>
Sun, 28 Feb 2016 19:11:47 +0000 (14:11 -0500)
committerLisa Marie Maginnis <lisam@fsf.org>
Sun, 28 Feb 2016 19:11:47 +0000 (14:11 -0500)
scripts/GMG/15_install_gmg.sh

index 68a99f1..0378233 100755 (executable)
@@ -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