From 367e4355f0113a93a43c45f6561fa9da979a0559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 24 Nov 2023 12:53:18 +0100 Subject: [PATCH] fix --- scripts/install | 1 + scripts/upgrade | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 5dcdb81..8c0528c 100755 --- a/scripts/install +++ b/scripts/install @@ -10,6 +10,7 @@ source _common.sh source /usr/share/yunohost/helpers secret=$(ynh_string_random --length=24) +timezone=$(cat /etc/timezone) #================================================= # INSTALL DEPENDENCIES diff --git a/scripts/upgrade b/scripts/upgrade index 4a3517d..3bf87c0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,6 +9,9 @@ source _common.sh source /usr/share/yunohost/helpers +secret=$(ynh_string_random --length=24) +timezone=$(cat /etc/timezone) + #================================================= # CHECK VERSION #================================================= @@ -33,7 +36,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" + ynh_setup_source --dest_dir="$install_dir" --keep=".env" fi chmod -R o-rwx "$install_dir" @@ -55,7 +58,7 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config -env_path="$PATH" +#env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config