Browse Source

Check for database scheme at an earlier stage

Bob Mottram 7 years ago
parent
commit
3e9d2f0e09
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/freedombone-app-hubzilla

+ 5
- 5
src/freedombone-app-hubzilla View File

386
         chown -R www-data:www-data $HUBZILLA_PATH
386
         chown -R www-data:www-data $HUBZILLA_PATH
387
     fi
387
     fi
388
 
388
 
389
+    if [ ! -f $HUBZILLA_PATH/install/schema_mysql.sql ]; then
390
+        echo $'No database schema found for hubzilla'
391
+        exit 252782
392
+    fi
393
+
389
     HUBZILLA_ONION_HOSTNAME=
394
     HUBZILLA_ONION_HOSTNAME=
390
     if [[ $ONION_ONLY != "no" ]]; then
395
     if [[ $ONION_ONLY != "no" ]]; then
391
         HUBZILLA_ONION_HOSTNAME=$(add_onion_service hubzilla 80 ${HUBZILLA_ONION_PORT})
396
         HUBZILLA_ONION_HOSTNAME=$(add_onion_service hubzilla 80 ${HUBZILLA_ONION_PORT})
578
     function_check nginx_ensite
583
     function_check nginx_ensite
579
     nginx_ensite $HUBZILLA_DOMAIN_NAME
584
     nginx_ensite $HUBZILLA_DOMAIN_NAME
580
 
585
 
581
-    # initialize the database
582
-    if [ ! -f $HUBZILLA_PATH/install/schema_mysql.sql ]; then
583
-        echo $'No database schema found for hubzilla'
584
-        exit 252782
585
-    fi
586
     function_check initialise_database
586
     function_check initialise_database
587
     initialise_database hubzilla $HUBZILLA_PATH/install/schema_mysql.sql
587
     initialise_database hubzilla $HUBZILLA_PATH/install/schema_mysql.sql
588
 
588