fix the registration generation args

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-03 20:47:51 +01:00
parent 463219cfa9
commit f4b6109204
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -67,7 +67,7 @@ in
umask $old_umask
[ -f ${registrationFile} ] && rm -f ${registrationFile}
${mautrix-whatsapp}/bin/mautrix-whatsapp --generate-registration --base-config ${mautrix-whatsapp.src}/example-config.yaml --config ${settingsFile} --registration ${registrationFile}
${mautrix-whatsapp}/bin/mautrix-whatsapp --generate-registration --config ${settingsFile} --registration ${registrationFile}
# Extract the tokens from the registration
export AS_TOKEN=$(${pkgs.yq}/bin/yq -r '.as_token' ${registrationFile})