From: Silvio Rhatto Date: Mon, 19 Dec 2011 20:33:56 +0000 (-0200) Subject: Set sunrise symlink X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f52041db0f9ce2c4d2fd081a4805c1c244caf9b4;p=puppet-wordpress.git Set sunrise symlink --- diff --git a/templates/wordpress.sh.erb b/templates/wordpress.sh.erb index 60918c5..513a292 100644 --- a/templates/wordpress.sh.erb +++ b/templates/wordpress.sh.erb @@ -96,6 +96,11 @@ function wordpress_upgrade { # Fix permissions chown -R root.root wordpress-$new/wp-content/{plugins,themes} + # Set sunrise symlink + if [ -f "wordpress-$new/wp-content/plugins/wordpress-mu-domain-mapping/sunrise.php" ]; then + ( cd wordpress-$new/wp-content && ln -s plugins/wordpress-mu-domain-mapping/sunrise.php ) + fi + # Change symlink to point to the new location if [ -h "site" ]; then link="`readlink site`"