瀏覽代碼

Drop the database on install failure

Bob Mottram 8 年之前
父節點
當前提交
b94090b85e
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. 1
    0
      src/freedombone-app-gnusocial
  2. 1
    0
      src/freedombone-app-postactiv

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

711
     # check gnusocial has a config file
711
     # check gnusocial has a config file
712
     gnusocial_config_file=/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php
712
     gnusocial_config_file=/var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php
713
     if [ ! -f $gnusocial_config_file ]; then
713
     if [ ! -f $gnusocial_config_file ]; then
714
+        drop_database gnusocial
714
         rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
715
         rm -rf /var/www/$GNUSOCIAL_DOMAIN_NAME
715
         echo $'Gnusocial config.php not found'
716
         echo $'Gnusocial config.php not found'
716
         exit 87586
717
         exit 87586

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

555
     # check postactiv has a config file
555
     # check postactiv has a config file
556
     postactiv_config_file=/var/www/$POSTACTIV_DOMAIN_NAME/htdocs/config.php
556
     postactiv_config_file=/var/www/$POSTACTIV_DOMAIN_NAME/htdocs/config.php
557
     if [ ! -f $postactiv_config_file ]; then
557
     if [ ! -f $postactiv_config_file ]; then
558
+        drop_database postactiv
558
         rm -rf /var/www/$POSTACTIV_DOMAIN_NAME
559
         rm -rf /var/www/$POSTACTIV_DOMAIN_NAME
559
         echo $'Postactiv config.php not found'
560
         echo $'Postactiv config.php not found'
560
         exit 87586
561
         exit 87586