1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lstu_ynh.git synced 2024-09-03 19:36:12 +02:00

Trying to fix the restore script

This commit is contained in:
Kayou 2019-02-04 00:51:23 +01:00 committed by GitHub
parent 5b8c219706
commit 7f7625433f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,9 @@ ynh_restore_file "$final_path"
#=================================================
db_pwd=$(ynh_app_setting_get $app psqlpwd)
ynh_psql_test_if_first_run
ynh_psql_setup_db $db_name $db_name $db_pwd
ynh_psql_connect_as $db_name $db_pwd < ./db.sql
ynh_psql_connect_as $db_name $db_pwd $db_name < ./db.sql
#=================================================
# SPECIFIC RESTORATION