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

load setting jwt_key on upgrade

This commit is contained in:
Thomas 2024-03-11 20:17:40 +01:00 committed by GitHub
parent 4a298d4f43
commit f0170ab8a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,15 @@ upgrade_type=$(ynh_check_app_version_changed)
# Retrieve YunoHost main domain for mails to work # Retrieve YunoHost main domain for mails to work
main_domain=$(cat /etc/yunohost/current_host) main_domain=$(cat /etc/yunohost/current_host)
#=================================================
# LOAD SETTINGS
#=================================================
if [ -z "${jwt_key:-}" ]; then
jwt_key=$(ynh_string_random --length=45 | base64)
ynh_app_setting_set --app=$app --key=jwt_key --value=$jwt_key
fi
#================================================= #=================================================
# STANDARD UPGRADE STEPS # STANDARD UPGRADE STEPS
#================================================= #=================================================