aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-06-12 01:33:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-06-12 01:33:24 -0300
commit589373257c1d7fd8e864bbdad2c2085ea91f768c (patch)
tree5c17e751fce976c07480d20cf2f4d96d2bd2a48e
parentb17a2a7261c9230b18d8b91ee7c5461f8252651d (diff)
downloadpuppet-pmwiki-589373257c1d7fd8e864bbdad2c2085ea91f768c.tar.gz
puppet-pmwiki-589373257c1d7fd8e864bbdad2c2085ea91f768c.tar.bz2
Deploy making symlink to index.php
-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 49accde..4b1e9dc 100644
--- a/templates/pmwiki.sh.erb
+++ b/templates/pmwiki.sh.erb
@@ -30,6 +30,11 @@ function pmwiki_deploy {
wget http://pmwiki.org/pub/pmwiki/i18n/i18n-all.zip
tar zxvf pmwiki-$new.tgz && rm pmwiki-$new.tgz
( cd pmwiki-$new && unzip -o ../i18n-all.zip && rm $_ )
+
+ if [ ! -e "pmwiki-$new/index.php" ]; then
+ ( cd pmwiki-$new && ln -s pmwiki.php index.php )
+ fi
+
chown -R root.root pmwiki-$new/
}