Éric Gaspar 2 лет назад
Родитель
Сommit
367e4355f0
2 измененных файлов с 6 добавлено и 2 удалено
  1. 1 0
      scripts/install
  2. 5 2
      scripts/upgrade

+ 1 - 0
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

+ 5 - 2
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