diff --git a/check_process b/check_process index b8d9626..6e9e4ed 100644 --- a/check_process +++ b/check_process @@ -1,4 +1,7 @@ ;; Test complet + ; pre-install + sudo curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - + sudo apt install -y nodejs ; Manifest domain="domain.tld" path="/path" diff --git a/scripts/_common.sh b/scripts/_common.sh index 9fdc58b..b3656bc 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,8 +7,6 @@ # nodejs version nodejs_version=14 -pkg_dependencies="nodejs" - #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index f5ab185..7c8ff0a 100644 --- a/scripts/install +++ b/scripts/install @@ -60,9 +60,7 @@ 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 -curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - -ynh_install_app_dependencies $pkg_dependencies +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id=deb diff --git a/scripts/remove b/scripts/remove index 09754b6..d048ca8 100644 --- a/scripts/remove +++ b/scripts/remove @@ -48,14 +48,11 @@ 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 +ynh_script_progression --message="Removing dependencies..." # Remove NodeJS dpkg --remove thelounge -#ynh_remove_nodejs +ynh_remove_nodejs #================================================= # REMOVE NGINX CONFIGURATION