]> gitweb.fluxo.info Git - puppet-wordpress.git/commitdiff
Set sunrise symlink
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Dec 2011 20:33:56 +0000 (18:33 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Dec 2011 20:33:56 +0000 (18:33 -0200)
templates/wordpress.sh.erb

index 60918c575d1fa6ff09d65a030ee0088124d26e9f..513a292224d9eae11d87310dd71905c88213190d 100644 (file)
@@ -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`"