1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/couchdb_ynh.git synced 2024-09-03 18:16:11 +02:00

Merge branch 'testing'

This commit is contained in:
eauchat 2021-03-12 19:30:18 +01:00
commit 375a76c97e
2 changed files with 1 additions and 15 deletions

View file

@ -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" # 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 ynh_script_progression --message="Customizing couchdb config..." --weight=2
# customize a bit the couch config # customize a bit the couch config
ynh_add_config --template="../conf/couch_ynh.ini" --destination="$final_path/etc/local.d/couch_ynh.ini" 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 # SETUP LOGROTATE
#================================================= #=================================================

View file

@ -89,17 +89,6 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=15
ynh_install_app_dependencies $pkg_dependencies couchdb 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 # GENERIC FINALIZATION
#================================================= #=================================================