diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-06-12 01:33:24 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-06-12 01:33:24 -0300 |
commit | 589373257c1d7fd8e864bbdad2c2085ea91f768c (patch) | |
tree | 5c17e751fce976c07480d20cf2f4d96d2bd2a48e | |
parent | b17a2a7261c9230b18d8b91ee7c5461f8252651d (diff) | |
download | puppet-pmwiki-589373257c1d7fd8e864bbdad2c2085ea91f768c.tar.gz puppet-pmwiki-589373257c1d7fd8e864bbdad2c2085ea91f768c.tar.bz2 |
Deploy making symlink to index.php
-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 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/ } |