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

8 lines
397 B
SYSTEMD
Raw Normal View History

2022-08-18 16:38:37 +02:00
[Unit]
After=network-online.target
Before=risotto.target
[Service]
Type=oneshot
2022-12-25 17:08:52 +01:00
ExecStart=/usr/bin/timeout 90 bash -c 'while ! [ "$(/usr/bin/curl --write-out '%{http_code}' --silent --output /dev/null https://%%oauth2_client_server_domainname/.well-known/openid-configuration)" = 200 ]; do /usr/bin/curl https://%%oauth2_client_server_domainname/.well-known/openid-configuration; sleep 1; done;'