1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix form_secret wrongly generated

This commit is contained in:
Josué Tille 2019-11-13 21:11:39 +01:00
parent e5f908e56e
commit ac3218a316
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -144,7 +144,7 @@ fi
#=================================================
ynh_print_OFF
if [ -z "$registration_shared_secret" ]
if [ -z "$registration_shared_secret" ] || [ "$form_secret" == "form_secret: " ]
then
ynh_print_ON
ynh_script_progression --message="Generating synapse secret..." --weight=1
@ -162,7 +162,7 @@ then
# Get random values from config
ynh_print_OFF
registration_shared_secret=$(egrep "^registration_shared_secret" homeserver.yml | cut -d'"' -f2)
form_secret=$(egrep "^form_secret" homeserver.yml | cut -d'"' -f1)
form_secret=$(egrep "^form_secret" homeserver.yml | cut -d'"' -f2)
# store in yunohost settings
ynh_app_setting_set --app=$app --key=registration_shared_secret --value="$registration_shared_secret"