From 90cfa16072d862dbc3079a20aaf5915c7b53213f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 9 Feb 2022 17:56:47 +0100 Subject: [PATCH] Fix --- manifest.json | 4 ++-- scripts/install | 5 ++--- scripts/upgrade | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 1179563..e61ad5b 100644 --- a/manifest.json +++ b/manifest.json @@ -3,14 +3,14 @@ "id": "timeoff", "packaging_format": 1, "description": { - "en": "Web application for managing employee absences" + "en": "Web application for managing employee absences", + "fr": "Web application for managing employee absences" }, "version": "1.4.0~ynh1", "url": "https://timeoff.management/", "upstream": { "license": "MIT", "website": "https://timeoff.management/", - "demo": "https://demo.example.com", "admindoc": "https://timeoff.management/support/main-page.html", "code": "https://github.com/timeoff-management/timeoff-management-application" }, diff --git a/scripts/install b/scripts/install index 3aa28fa..593bdaf 100644 --- a/scripts/install +++ b/scripts/install @@ -54,7 +54,7 @@ ynh_app_setting_set --app=$app --key=language --value=$language ynh_script_progression --message="Finding an available port..." # Find an available port -port=$(ynh_find_port 9001) +port=$(ynh_find_port --port=3000) ynh_app_setting_set --app=$app --key=port --value=$port #================================================= @@ -165,8 +165,7 @@ ynh_add_config --template="../conf/db.json" --destination="$final_path/config/db #================================================= ynh_script_progression --message="Configuring a systemd service..." -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - +env_path="$PATH" ynh_add_systemd_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 668fc5c..4883e39 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -137,8 +137,7 @@ ynh_use_logrotate --non-append #================================================= ynh_script_progression --message="Upgrading systemd configuration..." -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - +env_path="$PATH" ynh_add_systemd_config #=================================================