summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/wordpress.sh.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/wordpress.sh.erb b/templates/wordpress.sh.erb
index 33d473c..60a15e9 100644
--- a/templates/wordpress.sh.erb
+++ b/templates/wordpress.sh.erb
@@ -61,6 +61,12 @@ function wordpress_upgrade {
wordpress_check_existing $new
cd $BASE
+
+ if [ ! -d "wordpress-$old" ]; then
+ echo "Installation not found: wordpress-$old"
+ exit
+ fi
+
cp -a wordpress-$old wordpress-$old.backup
# Deploy a fresh wordpress tree