diff --git a/scripts/install b/scripts/install index f0ee82f..620357b 100755 --- a/scripts/install +++ b/scripts/install @@ -116,8 +116,9 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= # INSTALL NODEJS #================================================= +ynh_script_progression --message="Installing NodeJS..." --time --weight=2 -ynh_install_nodejs $node_version +ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= # NODEJS Version @@ -207,9 +208,12 @@ ynh_add_nginx_config #================================================= # SPECIFIC SETUP #================================================= +ynh_script_progression --message="Installing Uptime Kuma..." --time --weight=3 # Install pm2 (may be replaced by adequate systemd conf) -npm install pm2 -g -npm install +ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install pm2 -g +ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm npm install +wget https://github.com/louislam/uptime-kuma/releases/download/1.10.0/dist.tar.gz +tar -xvf dist.tar.gz #================================================= # CREATE DATA DIRECTORY diff --git a/scripts/remove b/scripts/remove index 3444290..c523273 100755 --- a/scripts/remove +++ b/scripts/remove @@ -60,6 +60,13 @@ ynh_remove_logrotate # Remove a database if it exists, along with the associated user # ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name +#================================================= +# REMOVE NODEJS +#================================================= +ynh_script_progression --message="Removing nodejs version..." --time --weight=1 + +ynh_remove_nodejs + #================================================= # REMOVE DEPENDENCIES #=================================================