From 6e535f2eabbd60700ac63e7e53ff810a84c77fc9 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Tue, 18 Jul 2017 13:15:24 +0100
Subject: [PATCH] Upgrading GS/pA

---
 src/freedombone-app-gnusocial | 2 +-
 src/freedombone-app-postactiv | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-app-gnusocial b/src/freedombone-app-gnusocial
index e0d186c64..32255ab31 100755
--- a/src/freedombone-app-gnusocial
+++ b/src/freedombone-app-gnusocial
@@ -351,7 +351,7 @@ function upgrade_gnusocial {
         rm /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/install.php
     fi
 
-    if [ -d $INSTALL_DIR/pleroma ]; then
+    if [ -f /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/index_qvitter.php ]; then
         if [ -f /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/index.php ]; then
             mv /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/index.php /var/www/${GNUSOCIAL_DOMAIN_NAME}/htdocs/index_qvitter.php
         fi
diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv
index 78d753925..35ae70d16 100755
--- a/src/freedombone-app-postactiv
+++ b/src/freedombone-app-postactiv
@@ -365,7 +365,7 @@ function upgrade_postactiv {
         rm /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php
     fi
 
-    if [ -d $INSTALL_DIR/pleroma ]; then
+    if [ -f /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs/index_qvitter.php ]; then
         if [ -f /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs/index.php ]; then
             mv /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs/index.php /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs/index_qvitter.php
         fi
-- 
GitLab