post_install() {
  chown -R mas:mas /usr/share/matrix-authentication-service
  cat << EOF
  ==> Generate the config.yaml, including secrets:
  # mas-cli config generate /etc/matrix-authentication-service/config.yaml
  ==> update the configuration as per the documentation
  # https://matrix-org.github.io/matrix-authentication-service/index.html
  ==> sync the config changes
  # mas-cli config sync --prune
  ==> start and enable the service
  # systemctl enable --now matrix-authentication-service
EOF
}

post_upgrade() {
  chown -R mas:mas /usr/share/matrix-authentication-service
}
