From 68a2eb232c498543f2cd4c8da5ce00c0054bdcca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 17 Jan 2024 12:01:48 +0100 Subject: [PATCH] Fix: setup.ini does not exist by default --- scripts/install | 2 -- scripts/upgrade | 12 +----------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/scripts/install b/scripts/install index 139c3c7..be9e7be 100644 --- a/scripts/install +++ b/scripts/install @@ -20,8 +20,6 @@ ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" -ynh_store_file_checksum --file="$install_dir/conf/setup.ini" - #================================================= # SYSTEM CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index ec605be..dd17d98 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,28 +9,18 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# DOWNLOAD, CHECK AND UNPACK SOURCE -#================================================= -ynh_script_progression --message="Backing up configuration file..." --weight=5 - -# Save setup.ini -ynh_backup_if_checksum_is_different --file="$install_dir/conf/setup.ini" - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$install_dir" --full_replace=1 +ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="conf/setup.ini" chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" -ynh_store_file_checksum --file="$install_dir/conf/setup.ini" - #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================