From 7c54b9e02e1c3e3f6222fa92032a540694397311 Mon Sep 17 00:00:00 2001 From: eauchat Date: Fri, 12 Mar 2021 19:25:25 +0100 Subject: [PATCH] Stop using ynh_store_file_checksum, since ynh_add_config is already doing the job. --- scripts/install | 5 +---- scripts/upgrade | 11 ----------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/scripts/install b/scripts/install index e5ebbfd..4eec0e1 100755 --- a/scripts/install +++ b/scripts/install @@ -104,16 +104,13 @@ ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-de # ynh_install_extra_app_dependencies --repo="https://apache.bintray.com/couchdb-deb buster main" --package="couchdb" --key="https://apache.bintray.com/couchdb-deb/dists/buster/Release.gpg" #================================================= -# MODIFY A CONFIG FILE, AND STORE IT'S CHECKSUM +# ADD SOME CUSTOM CONFIGURATION TO COUCH #================================================= ynh_script_progression --message="Customizing couchdb config..." --weight=2 # customize a bit the couch config ynh_add_config --template="../conf/couch_ynh.ini" --destination="$final_path/etc/local.d/couch_ynh.ini" -# Calculate and store the config file checksum into the app settings -ynh_store_file_checksum --file="$final_path/etc/local.d/couch_ynh.ini" - #================================================= # SETUP LOGROTATE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2d6cd5e..a01bb3a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,17 +89,6 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=15 ynh_install_app_dependencies $pkg_dependencies couchdb -#================================================= -# MODIFY A CONFIG FILE -#================================================= - -### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. -### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it. -ynh_backup_if_checksum_is_different --file="$final_path/etc/local.d/couch_ynh.ini" - -# Calculate and store the config file checksum into the app settings -ynh_store_file_checksum --file="$final_path/etc/local.d/couch_ynh.ini" - #================================================= # GENERIC FINALIZATION #=================================================