#!/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 |