浏览代码

Ensure that install script is removed after upgrades

Bob Mottram 8 年前
父节点
当前提交
4794c1d1b7
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 5
    0
      src/freedombone-app-gnusocial
  2. 5
    0
      src/freedombone-app-postactiv

+ 5
- 0
src/freedombone-app-gnusocial 查看文件

350
     function_check set_repo_commit
350
     function_check set_repo_commit
351
     set_repo_commit /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs "gnusocial commit" "$GNUSOCIAL_COMMIT" $GNUSOCIAL_REPO
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
     function_check gnusocial_running_script
358
     function_check gnusocial_running_script
354
     gnusocial_running_script
359
     gnusocial_running_script
355
 }
360
 }

+ 5
- 0
src/freedombone-app-postactiv 查看文件

200
     function_check set_repo_commit
200
     function_check set_repo_commit
201
     set_repo_commit /var/www/$POSTACTIV_DOMAIN_NAME/htdocs "postactiv commit" "$POSTACTIV_COMMIT" $POSTACTIV_REPO
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
     #function_check postactiv_running_script
208
     #function_check postactiv_running_script
204
     #postactiv_running_script
209
     #postactiv_running_script
205
 }
210
 }