From becdb688306ad3eda3311e3628d42ee46a786227 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 13 Mar 2014 10:49:27 -0300 Subject: Make initial symlink on deploy --- templates/pmwiki.sh.erb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3