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:
parent
4a298d4f43
commit
f0170ab8a8
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue