From b8aa417789b134e756c0e1c03d3b02c3b99c1308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 8 Jun 2024 14:41:48 +0200 Subject: [PATCH] keep data --- scripts/install | 1 - scripts/upgrade | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 4dc13c4..cd1c1ef 100644 --- a/scripts/install +++ b/scripts/install @@ -19,7 +19,6 @@ ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" -# chmod -R ga+w "$install_dir/data" #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index d22eb05..4014c9c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,11 +20,10 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Upgrading source files..." --weight=7 # 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" --full_replace=1 --keep="data" chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" -# chmod -R ga+w "$install_dir/data" #================================================= # REAPPLY SYSTEM CONFIGURATIONS