From: Silvio Rhatto Date: Sat, 12 Jun 2010 04:33:24 +0000 (-0300) Subject: Deploy making symlink to index.php X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=589373257c1d7fd8e864bbdad2c2085ea91f768c;p=puppet-pmwiki.git Deploy making symlink to index.php --- 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/ }