aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-28 14:10:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-28 14:10:14 -0300
commitfc53a4aa962f1ee3bdcc8c2a66cbc96efd52ca51 (patch)
tree1353bb490e75ba535dacf3bb844092e8806cf1d5
parent228427cd2109fd711f19f2714d9d7e3c44826143 (diff)
downloadpuppet-pmwiki-fc53a4aa962f1ee3bdcc8c2a66cbc96efd52ca51.tar.gz
puppet-pmwiki-fc53a4aa962f1ee3bdcc8c2a66cbc96efd52ca51.tar.bz2
Ensure config file exists
-rw-r--r--templates/pmwiki.sh.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/pmwiki.sh.erb b/templates/pmwiki.sh.erb
index 789f6cb..022a7e6 100644
--- a/templates/pmwiki.sh.erb
+++ b/templates/pmwiki.sh.erb
@@ -111,10 +111,12 @@ function pmwiki_install {
# Create folder structure
(
mkdir -p $SITES/$site/wiki
+
cd $SITES/$site/wiki
ln -s field.php index.php
mkdir -p local uploads wiki.d cookbook
chown $site. wiki.d
+ touch local/config.php
chown root.$site local/config.php
)