diff options
Diffstat (limited to 'templates/wordpress.sh.erb')
-rw-r--r-- | templates/wordpress.sh.erb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/wordpress.sh.erb b/templates/wordpress.sh.erb index 6ef3594..60918c5 100644 --- a/templates/wordpress.sh.erb +++ b/templates/wordpress.sh.erb @@ -97,7 +97,12 @@ function wordpress_upgrade { chown -R root.root wordpress-$new/wp-content/{plugins,themes} # Change symlink to point to the new location - #cd $BASE ; rm -f blogs && ln -s wordpress-$new blogs + if [ -h "site" ]; then + link="`readlink site`" + if [ "`basename $link`" == "wordpress-$old" ]; then + rm site && ln -s wordpress-$new site + fi + fi # Done echo "Audit: `du -hs wordpress-$old`" |