monolithic/overlay/hooks/supervisord-pre.d/99_config_check.sh
VibroAxe faa6b3969d Rebase generic off monolithic
This commit rebases the generic code into the monolithic image
This allows the base image to be the more regularly accessed / edited image

Commits to lancachenet/generic:switcheroo will mimic this commit

Also fixes lancachenet/generic#108
2021-07-20 12:04:38 +00:00

9 lines
195 B
Bash

#!/bin/sh
set -e
echo "Currently configured config:"
/scripts/getconfig.sh /etc/nginx/nginx.conf
echo "Checking nginx config"
/usr/sbin/nginx -t
[ $? -ne 0 ] || echo "Config check successful"