diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-13 10:49:27 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-13 10:49:27 -0300 |
commit | becdb688306ad3eda3311e3628d42ee46a786227 (patch) | |
tree | 603f759b8d21f145e51ad795703803a2f560af00 | |
parent | 4bd731cffd71844fb25a058d519aaff9a1a0683e (diff) | |
download | puppet-pmwiki-becdb688306ad3eda3311e3628d42ee46a786227.tar.gz puppet-pmwiki-becdb688306ad3eda3311e3628d42ee46a786227.tar.bz2 |
Make initial symlink on deploy
-rw-r--r-- | templates/pmwiki.sh.erb | 5 |
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 |