blob: d752dbbac16bd1d0526916f8ea7899ec6d84db99 [file] [log] [blame]
#!/bin/sh
# Copyright 2021-present Open Networking Foundation
#
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
while ! curl -f http://spgwc:8080/startup
do
echo Waiting for SPGWC to be ready
sleep 5
done
echo SPGWC is ready
echo Posting to sync URL {{ .Values.config.spgwc.managedByRoc.syncUrl }}
while ! curl -f -X POST {{ .Values.config.spgwc.managedByRoc.syncUrl }}
do
echo Failed posting to sync URL
sleep 5
done
echo
echo Sleeping forever
while true
do
sleep 86400
done