From 2b55e5f427407e307460cb980b6680d84e546d58 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 9 Dec 2021 08:40:50 +0100 Subject: [PATCH] Fix --- manifest.json | 4 ++-- scripts/install | 22 ++++------------------ 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/manifest.json b/manifest.json index d392543..7d1463d 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Web IRC client", "fr": "Client Web IRC" }, - "version": "4.2.0~ynh5", + "version": "4.3.0~ynh1", "url": "https://thelounge.chat/", "upstream": { "license": "MIT", @@ -26,7 +26,7 @@ "email": "beudbeud@beudibox.fr" }, "requirements": { - "yunohost": ">= 4.2.4" + "yunohost": ">= 4.3.0" }, "multi_instance": false, "services": [ diff --git a/scripts/install b/scripts/install index 493f7ac..74a5bc4 100644 --- a/scripts/install +++ b/scripts/install @@ -77,25 +77,11 @@ ynh_exec_warn_less dpkg -i $tempdir/thelounge.deb #================================================= # CREATE DEDICATED USER #================================================= -#ynh_script_progression --message="Configuring system user..." -# Create a system user -#ynh_system_user_create --username=$app --home_dir="$final_path" - -# #================================================= -# # DOWNLOAD, CHECK AND UNPACK SOURCE -# #================================================= -# ynh_script_progression --message="Setting up source files..." - -# ynh_app_setting_set --app=$app --key=final_path --value=$final_path -# # Download, check integrity, uncompress and patch the source from app.src -# ynh_setup_source --dest_dir=$final_path - -# chmod 750 "$final_path" -# chmod -R o-rwx "$final_path" -# chown -R $app:www-data "$final_path" - -ynh_exec_as $app thelounge add $admin +pushd $final_path + ynh_use_nodejs + ynh_exec_as $app env "$ynh_node_load_PATH" thelounge add $admin +popd #================================================= # NGINX CONFIGURATION