From d49ca3b92f0b9e1e33682f5d5379f22056f6e313 Mon Sep 17 00:00:00 2001 From: denis Date: Fri, 15 Nov 2024 12:02:59 -0500 Subject: [PATCH] Update scripts/install --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 9745efc..97fd051 100755 --- a/scripts/install +++ b/scripts/install @@ -167,6 +167,14 @@ ynh_config_add_fail2ban --logpath="/var/log/nginx/${domain}-error.log" --failreg ### so we're going to use curl to automatically fill the fields and submit the ### forms. +pushd $install_dir + ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend generate + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH workspace @chibisafe/backend migrate + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn build +popd + # Installation with curl ynh_script_progression "Finalizing installation..." #ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"