diff options
-rw-r--r-- | templates/wordpress.sh.erb | 5 |
1 files changed, 5 insertions, 0 deletions
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`" |