]> gitweb.fluxo.info Git - puppet-pmwiki.git/commitdiff
Deploy making symlink to index.php
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 12 Jun 2010 04:33:24 +0000 (01:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 12 Jun 2010 04:33:24 +0000 (01:33 -0300)
templates/pmwiki.sh.erb

index 49accdee82993007f50ce7919a295c8ddfad8e8a..4b1e9dc2c081198c38c42fc441559fea46cb4bf3 100644 (file)
@@ -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/
 }