aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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