1
0
angie-conv-image/image-entry.d/90-angie-config-test.sh
2024-07-11 13:35:07 +03:00

26 lines
441 B
Bash
Executable File

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