dataset/seed/oauth2-client/templates/oauth2-client.service

7 lines
449 B
Desktop File

[Unit]
After=network-online.target
Before=risotto.target
[Service]
Type=oneshot
ExecStart=/usr/bin/timeout 90 bash -c 'while ! [ "$(/usr/bin/curl --write-out '%{http_code}' --silent --output /dev/null https://{{ general.oauth2_client.oauth2_client_server_domainname }}/.well-known/openid-configuration)" = 200 ]; do /usr/bin/curl https://{{ general.oauth2_client.oauth2_client_server_domainname }}/.well-known/openid-configuration; sleep 1; done;'