mirror of
https://github.com/YunoHost-Apps/outline_ynh.git
synced 2024-09-03 19:56:12 +02:00
Update restore
This commit is contained in:
parent
4f7b6d0f2d
commit
47a7232d9d
1 changed files with 10 additions and 0 deletions
|
@ -104,6 +104,16 @@ ynh_psql_test_if_first_run
|
|||
ynh_psql_setup_db --db_user=$db_name --db_name=$db_name
|
||||
ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
|
||||
|
||||
#=================================================
|
||||
# RUN DB MIGRATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Running DB initial migration..."
|
||||
|
||||
pushd "$final_path"
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn db:migrate
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEMD
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue