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

Merge pull request #124 from YunoHost-Apps/orhtej2-patch-1

Ensure Redis is configured
This commit is contained in:
Mateusz 2023-12-17 21:50:04 +01:00 committed by GitHub
commit 7e843a9d70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,13 @@ if [ -z "${fpm_usage:-}" ]; then
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
fi
# If redis_db doesn't exist, create it
if [ -z "${redis_db:-}" ]; then
# Configure redis
redis_db=$(ynh_redis_get_free_db)
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
fi
#=================================================
# MOVE DATA TO __DATA_DIR__
#=================================================