]> gitweb.fluxo.info Git - puppet-pmwiki.git/commitdiff
Make initial symlink on deploy
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 13 Mar 2014 13:49:27 +0000 (10:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 13 Mar 2014 13:49:27 +0000 (10:49 -0300)
templates/pmwiki.sh.erb

index 2fef04b742e3fa90b4bc20e7a9538be732862d9c..00bb0db738eb90dd2b6286fe8a1238dd0ddca407 100644 (file)
@@ -44,6 +44,11 @@ function pmwiki_deploy {
   fi
 
   chown -R root.root pmwiki-$new/
+
+  # Make initial symlink
+  if [ ! -e "wiki" ]; then
+    ln -s pmwiki-$new wiki
+  fi
 }
 
 # Upgrade a pmwiki instance using upstream source