make the registration file accessible to synapse
This commit is contained in:
parent
bf3412b5be
commit
d6245a647b
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ in
|
||||||
|
|
||||||
[ -f ${registrationFile} ] && rm -f ${registrationFile}
|
[ -f ${registrationFile} ] && rm -f ${registrationFile}
|
||||||
${mautrix-whatsapp}/bin/mautrix-whatsapp --generate-registration --config ${settingsFile} --registration ${registrationFile}
|
${mautrix-whatsapp}/bin/mautrix-whatsapp --generate-registration --config ${settingsFile} --registration ${registrationFile}
|
||||||
|
chmod 660 ${registrationFile}
|
||||||
|
|
||||||
# Extract the tokens from the registration
|
# Extract the tokens from the registration
|
||||||
export AS_TOKEN=$(${pkgs.yq}/bin/yq -r '.as_token' ${registrationFile})
|
export AS_TOKEN=$(${pkgs.yq}/bin/yq -r '.as_token' ${registrationFile})
|
||||||
|
|
Loading…
Reference in a new issue