From 0f51c6d7273680edee02b227bc1f49277cf4aaf0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Wed, 8 Aug 2018 23:43:20 +0200 Subject: [PATCH] add information about config.ini and ynh_backup_if_checksum_is_different --- scripts/install | 3 +++ scripts/upgrade | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 1d92f19..c1162f2 100644 --- a/scripts/install +++ b/scripts/install @@ -178,6 +178,9 @@ Config: $final_path/config.ini Please remember the default behavior of YunoHost when installing a new app is: everyone has access to the app. This may be an issue for Kresus as it is a personnal tool. Please remember to edit access rights in the YunoHost web administration panel or using command line interface. +Note about config.ini: this package will regenerate the config file on upgrade. +If you changed it manually and upgrade Kresus, you'll find a backup in $final_path. + Are you facing an issue, want to improve this app or say thank you? Please open a new issue in this project: https://github.com/YunoHost-Apps/kresus_ynh " diff --git a/scripts/upgrade b/scripts/upgrade index 1ddc2cc..d1fad6f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -136,6 +136,8 @@ ynh_use_nodejs # CONFIGURE HASTE #================================================= +ynh_backup_if_checksum_is_different "$final_path/config.ini" + cp ../conf/config.ini "$final_path/config.ini" ynh_replace_string "__PORT__" "$port" "$final_path/config.ini" @@ -194,6 +196,9 @@ Config: $final_path/config.ini Please remember the default behavior of YunoHost when installing a new app is: everyone has access to the app. This may be an issue for Kresus as it is a personnal tool. Please remember to edit access rights in the YunoHost web administration panel or using command line interface. +Note about config.ini: this package will regenerate the config file on upgrade. +If you changed it manually and upgrade Kresus, you'll find a backup in $final_path. + Are you facing an issue, want to improve this app or say thank you? Please open a new issue in this project: https://github.com/YunoHost-Apps/kresus_ynh "