]> gitweb.fluxo.info Git - puppet-ikiwiki.git/commitdiff
Wipe source folder before deployment
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 23:37:40 +0000 (20:37 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 23:37:40 +0000 (20:37 -0300)
templates/deploy.sh.erb

index bd4031de055551b4003c8a923b402525dd0a4e61..edcae12dce9fb32eb3135a2a23b2ee5086dc77d4 100644 (file)
@@ -26,6 +26,7 @@ fi
 
 # Setup source folder
 mkdir -p $SITE/"$INSTANCE"_src_tmp/
+rm -rf $SITE/"$INSTANCE"_src
 
 # Create initial page
 echo "Welcome to your new wiki powered by [ikiwiki](http://ikiwiki.info)." > $SITE/"$INSTANCE"_src_tmp/index.mdwn