Merge branch 'testing' into 2.0.0-beta.84

This commit is contained in:
yalh76 2019-03-31 21:43:09 +02:00 committed by GitHub
commit f0f36ba7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -79,7 +79,7 @@ db_pwd=$(ynh_string_random 30)
ynh_app_setting_set "$app" db_name "$db_name"
ynh_app_setting_set "$app" db_pwd "$db_pwd"
ynh_psql_test_if_first_run
ynh_psql_create_db "$db_name" "$db_name" "$db_pwd"
ynh_psql_setup_db "$db_name" "$db_name" "$db_pwd"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE

View File

@ -92,7 +92,7 @@ ynh_install_app_dependencies $pkg_dependencies
ynh_print_info "Restoring the PostgreSQL database..."
ynh_psql_test_if_first_run
ynh_psql_create_db "$db_name" "$db_name" "$db_pwd"
ynh_psql_setup_db "$db_name" "$db_name" "$db_pwd"
ynh_psql_execute_file_as_root ./db.sql "$db_name"
#=================================================

View File

@ -59,6 +59,9 @@ ynh_secure_remove "/etc/apt/sources.list.d/yarn.list"
# Remove old log file
ynh_secure_remove "/var/log/$app/"
# Create PostgreSQL User
ynh_psql_create_user $db_name $db_pwd
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================