summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-19 18:33:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-19 18:33:56 -0200
commitf52041db0f9ce2c4d2fd081a4805c1c244caf9b4 (patch)
treeb9f06e79ec724506c2cac7586efaecd06e0afc45
parentdc3277139f07a0c552b4f4713ae59bed05b26a72 (diff)
downloadpuppet-wordpress-f52041db0f9ce2c4d2fd081a4805c1c244caf9b4.tar.gz
puppet-wordpress-f52041db0f9ce2c4d2fd081a4805c1c244caf9b4.tar.bz2
Set sunrise symlink
-rw-r--r--templates/wordpress.sh.erb5
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`"