From 21064560481a55af29399ed9b35f48c7d6791025 Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 23 Sep 2021 18:52:21 +0200 Subject: [PATCH] Correct DB migration 2 --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 45011ac..2d7879a 100755 --- a/scripts/install +++ b/scripts/install @@ -233,6 +233,8 @@ chown $app:$app "$final_path/.env" # 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