aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-11 20:37:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-11 20:37:40 -0300
commit4f700f3d5e447325fda5d607e9d713c3880cfd2b (patch)
tree7bbd20985d25963a85de791fcfdb9eacd3fd1903
parentcada1b7eceae9cbf6e19817ffb09c955a7fb6fd6 (diff)
downloadpuppet-ikiwiki-4f700f3d5e447325fda5d607e9d713c3880cfd2b.tar.gz
puppet-ikiwiki-4f700f3d5e447325fda5d607e9d713c3880cfd2b.tar.bz2
Wipe source folder before deployment
-rw-r--r--templates/deploy.sh.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb
index bd4031d..edcae12 100644
--- a/templates/deploy.sh.erb
+++ b/templates/deploy.sh.erb
@@ -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