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

Set a random redis number

This commit is contained in:
ericgaspar 2021-05-20 19:18:55 +02:00
parent 26b743ccf5
commit 881c423955
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 2 additions and 1 deletions

View file

@ -34,4 +34,4 @@ cache.handler="redis"
cache.redis.host="127.0.0.1"
cache.redis.password=null
cache.redis.port=6379
cache.redis.database=0
cache.redis.database=__REDIS_NUMBER__

View file

@ -111,6 +111,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Configuring Castopod..." --weight=1
redis_number=$(shuf -i 0-15 -n 1)
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
chmod 600 $final_path/.env
chown $app:www-data "$final_path/.env"