From: Silvio Rhatto Date: Thu, 13 Mar 2014 13:49:27 +0000 (-0300) Subject: Make initial symlink on deploy X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=becdb688306ad3eda3311e3628d42ee46a786227;p=puppet-pmwiki.git Make initial symlink on deploy --- 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