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:
parent
26b743ccf5
commit
881c423955
2 changed files with 2 additions and 1 deletions
|
@ -34,4 +34,4 @@ cache.handler="redis"
|
||||||
cache.redis.host="127.0.0.1"
|
cache.redis.host="127.0.0.1"
|
||||||
cache.redis.password=null
|
cache.redis.password=null
|
||||||
cache.redis.port=6379
|
cache.redis.port=6379
|
||||||
cache.redis.database=0
|
cache.redis.database=__REDIS_NUMBER__
|
||||||
|
|
|
@ -111,6 +111,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Castopod..." --weight=1
|
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"
|
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
|
||||||
chmod 600 $final_path/.env
|
chmod 600 $final_path/.env
|
||||||
chown $app:www-data "$final_path/.env"
|
chown $app:www-data "$final_path/.env"
|
||||||
|
|
Loading…
Add table
Reference in a new issue