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

Update upgrade

This commit is contained in:
Éric Gaspar 2023-04-10 11:52:04 +02:00
parent 7d701f855f
commit aeda71695c

View file

@ -47,7 +47,7 @@ ynh_clean_setup () {
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If secret_key doesn't exist, create it
if [[ -z "$secret_key" ]]; then
if [[ -z "${secret_key:-}" ]]; then
secret_key=$(ynh_string_random --length=50)
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
fi