blob: 82ca53316ecddf5c2907a8270f80d1059e4b878a [file] [log] [blame]
Andy Bavier1a2d8f52021-06-04 16:04:17 -07001#!/bin/sh
2
3# Copyright 2021-present Open Networking Foundation
4#
5# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
6
Andy Bavier8e2d4972021-06-22 16:46:09 -07007while ! curl -f --connect-timeout 5 http://spgwc:8080/startup
Andy Bavier1a2d8f52021-06-04 16:04:17 -07008do
9 echo Waiting for SPGWC to be ready
10 sleep 5
11done
12echo SPGWC is ready
13
14echo Posting to sync URL {{ .Values.config.spgwc.managedByRoc.syncUrl }}
Andy Bavier8e2d4972021-06-22 16:46:09 -070015while ! curl --connect-timeout 5 -f -X POST {{ .Values.config.spgwc.managedByRoc.syncUrl }}
Andy Bavier1a2d8f52021-06-04 16:04:17 -070016do
17 echo Failed posting to sync URL
18 sleep 5
19done
20echo
21
22echo Sleeping forever
23while true
24do
25 sleep 86400
26done