diff --git a/scripts/_common.sh b/scripts/_common.sh index b3656bc..9fdc58b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,6 +7,8 @@ # nodejs version nodejs_version=14 +pkg_dependencies="nodejs" + #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 7c8ff0a..cbd49df 100644 --- a/scripts/install +++ b/scripts/install @@ -60,7 +60,9 @@ ynh_app_setting_set --app=$app --key=port --value=$port ynh_script_progression --message="Installing dependencies..." --weight=20 # Install Nodejs -ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version +#ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version + +ynh_install_app_dependencies $pkg_dependencies tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id=deb diff --git a/scripts/remove b/scripts/remove index 3462069..09754b6 100644 --- a/scripts/remove +++ b/scripts/remove @@ -45,9 +45,17 @@ ynh_remove_systemd_config #================================================= ynh_script_progression --message="Removing dependencies..." +#================================================= +# REMOVE DEPENDENCIES +#================================================= +ynh_script_progression --message="Removing dependencies..." --time --weight=1 + +# Remove metapackage and its dependencies +ynh_remove_app_dependencies + # Remove NodeJS dpkg --remove thelounge -ynh_remove_nodejs +#ynh_remove_nodejs #================================================= # REMOVE NGINX CONFIGURATION