diff --git a/scripts/upgrade b/scripts/upgrade index 728deba..e5d3988 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,6 +111,16 @@ ynh_add_config --template="../conf/config.js.template" --destination="$final_pat chmod 400 "$final_path/config.js" chown $app:$app "$final_path/config.js" +#================================================= +# INSTALL THE LOUNGE +#================================================= +ynh_script_progression --message="Installing $app..." --weight=10 + +pushd $final_path + ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --no-optional +popd + #================================================= # SETUP SYSTEMD #=================================================