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"