From f52041db0f9ce2c4d2fd081a4805c1c244caf9b4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 19 Dec 2011 18:33:56 -0200 Subject: Set sunrise symlink --- templates/wordpress.sh.erb | 5 +++++ 1 file changed, 5 insertions(+) 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`" -- cgit v1.2.3