1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
ericgaspar 2022-01-04 14:05:19 +01:00
parent 5fc2bb4d2a
commit 4cb3d5628e
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 6 additions and 10 deletions

View file

@ -1,4 +1,7 @@
;; Test complet ;; Test complet
; pre-install
sudo curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt install -y nodejs
; Manifest ; Manifest
domain="domain.tld" domain="domain.tld"
path="/path" path="/path"

View file

@ -7,8 +7,6 @@
# nodejs version # nodejs version
nodejs_version=14 nodejs_version=14
pkg_dependencies="nodejs"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS
#================================================= #=================================================

View file

@ -60,9 +60,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
ynh_script_progression --message="Installing dependencies..." --weight=20 ynh_script_progression --message="Installing dependencies..." --weight=20
# Install Nodejs # Install Nodejs
#ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version 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
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
ynh_setup_source --dest_dir=$tempdir --source_id=deb ynh_setup_source --dest_dir=$tempdir --source_id=deb

View file

@ -48,14 +48,11 @@ ynh_script_progression --message="Removing dependencies..."
#================================================= #=================================================
# REMOVE DEPENDENCIES # REMOVE DEPENDENCIES
#================================================= #=================================================
ynh_script_progression --message="Removing dependencies..." --time --weight=1 ynh_script_progression --message="Removing dependencies..."
# Remove metapackage and its dependencies
ynh_remove_app_dependencies
# Remove NodeJS # Remove NodeJS
dpkg --remove thelounge dpkg --remove thelounge
#ynh_remove_nodejs ynh_remove_nodejs
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION