aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-13 10:49:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-13 10:49:27 -0300
commitbecdb688306ad3eda3311e3628d42ee46a786227 (patch)
tree603f759b8d21f145e51ad795703803a2f560af00 /templates
parent4bd731cffd71844fb25a058d519aaff9a1a0683e (diff)
downloadpuppet-pmwiki-becdb688306ad3eda3311e3628d42ee46a786227.tar.gz
puppet-pmwiki-becdb688306ad3eda3311e3628d42ee46a786227.tar.bz2
Make initial symlink on deploy
Diffstat (limited to 'templates')
-rw-r--r--templates/pmwiki.sh.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/pmwiki.sh.erb b/templates/pmwiki.sh.erb
index 2fef04b..00bb0db 100644
--- a/templates/pmwiki.sh.erb
+++ b/templates/pmwiki.sh.erb
@@ -44,6 +44,11 @@ function pmwiki_deploy {
fi
chown -R root.root pmwiki-$new/
+
+ # Make initial symlink
+ if [ ! -e "wiki" ]; then
+ ln -s pmwiki-$new wiki
+ fi
}
# Upgrade a pmwiki instance using upstream source