mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Ensure Redis is configured
This commit is contained in:
parent
bbfa5dcee9
commit
873a1f8b46
1 changed files with 7 additions and 0 deletions
|
@ -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__
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue