Quellcode durchsuchen

Ensure that install script is removed after upgrades

Bob Mottram vor 8 Jahren
Ursprung
Commit
4794c1d1b7
2 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 5
    0
      src/freedombone-app-gnusocial
  2. 5
    0
      src/freedombone-app-postactiv

+ 5
- 0
src/freedombone-app-gnusocial Datei anzeigen

@@ -350,6 +350,11 @@ function upgrade_gnusocial {
350 350
     function_check set_repo_commit
351 351
     set_repo_commit /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs "gnusocial commit" "$GNUSOCIAL_COMMIT" $GNUSOCIAL_REPO
352 352
 
353
+    # Ensure that installation script is removed
354
+    if [ -f /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/install.php ]; then
355
+        rm /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/install.php
356
+    fi
357
+
353 358
     function_check gnusocial_running_script
354 359
     gnusocial_running_script
355 360
 }

+ 5
- 0
src/freedombone-app-postactiv Datei anzeigen

@@ -200,6 +200,11 @@ function upgrade_postactiv {
200 200
     function_check set_repo_commit
201 201
     set_repo_commit /var/www/$POSTACTIV_DOMAIN_NAME/htdocs "postactiv commit" "$POSTACTIV_COMMIT" $POSTACTIV_REPO
202 202
 
203
+    # Ensure that installation script is removed
204
+    if [ -f /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php ]; then
205
+        rm /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/install.php
206
+    fi
207
+
203 208
     #function_check postactiv_running_script
204 209
     #postactiv_running_script
205 210
 }