Update scripts/install

This commit is contained in:
denis 2024-11-15 12:02:59 -05:00
parent f499db9f8f
commit d49ca3b92f

View file

@ -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 ### so we're going to use curl to automatically fill the fields and submit the
### forms. ### 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 # Installation with curl
ynh_script_progression "Finalizing installation..." ynh_script_progression "Finalizing installation..."
#ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3" #ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"