|
|
@@ -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
|
|
|
|