From a4241929b65fbc0815451913b7f3df16dce9fcf2 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 15 Aug 2023 20:32:46 +0200 Subject: [PATCH] adding comment --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 6f9f774..8542a3c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -313,6 +313,8 @@ then instance_inject_mastodon_version="false" # update default config if [ "$media_remote_cache_days" == "30" ]; then + # "30" is the old default value, "7" the new one + # updating to the new default only if the old default value is used (to not overwrite an user modified value) media_remote_cache_days="7" ynh_app_setting_set --app="$app" --key=media_remote_cache_days --value="$media_remote_cache_days" fi