#!/bin/sh set -f . /image-entry.d/00-common.envsh ## merely debug test log_always 'test Angie configuration:' log_always '=========================' angie -t r=$? log_always '=========================' ## cleanup after test rm -f /run/angie/angie.pid if [ $r = 0 ] ; then log_always 'ready to run Angie' else log_always 'configuration test has failed, see above' t=15 log_always "injecting delay for $t seconds" sleep $t fi exit 0