1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/uptime-kuma_ynh.git synced 2024-10-01 13:34:58 +02:00

just saw there was a helper for nodejs of course

This commit is contained in:
Hadrien 2021-11-01 23:45:35 +03:00
parent 20d850a69e
commit b46dbb4b20
2 changed files with 14 additions and 3 deletions

View file

@ -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

View file

@ -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
#=================================================