1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

Add redis_namespace to upgrade

This commit is contained in:
Mateusz 2024-07-29 10:18:53 +02:00 committed by GitHub
parent c3c4416b24
commit 61d3ceebd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,11 @@ if [[ -z "${service:-}" ]]; then
service="$app-web.service"
ynh_app_setting_set --app="$app" --key=service --value="$service"
fi
# Set `redis_namespace` settings
if [[ -z "${redis_namespace:-}" ]]; then
redis_namespace=${app}_production
ynh_app_setting_set --app="$app" --key=redis_namespace --value="$redis_namespace"
fi
# Remove previous added repository
ynh_remove_extra_repo