1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/documize_ynh.git synced 2024-09-03 18:26:19 +02:00

Update restore

This commit is contained in:
Éric Gaspar 2022-06-12 15:27:24 +02:00
parent 96b9d3398d
commit d433069697
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -87,6 +87,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=6
ynh_psql_test_if_first_run
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name