autoconf - minor fixes, prepare Swarm testing

This commit is contained in:
bunkerity
2021-07-29 17:32:33 +02:00
parent 1a32e7c02c
commit f866ef6325
4 changed files with 21 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
. /opt/bunkerize-nginx/entrypoint/utils.sh
. /opt/bunkerized-nginx/entrypoint/utils.sh
log "entrypoint" "INFO" "starting bunkerized-nginx ..."

View File

@@ -10,38 +10,40 @@ if [ -f "/usr/sbin/nginx" ] ; then
# /www
if [ ! -r "/www" ] || [ ! -x "/www" ] ; then
echo "[!] ERROR - wrong permissions on /www"
exit 2
fi
# /modsec-confs
if [ ! -r "/modsec-confs" ] || [ ! -x "/modsec-confs" ] ; then
echo "[!] ERROR - wrong permissions on /modsec-confs"
exit 3
fi
# /modsec-crs-confs
if [ ! -r "/modsec-crs-confs" ] || [ ! -x "/modsec-crs-confs" ] ; then
echo "[!] ERROR - wrong permissions on /modsec-crs-confs"
exit 4
exit 1
fi
# /server-confs
if [ ! -r "/server-confs" ] || [ ! -x "/server-confs" ] ; then
echo "[!] ERROR - wrong permissions on /server-confs"
exit 5
exit 1
fi
# /http-confs
if [ ! -r "/http-confs" ] || [ ! -x "/http-confs" ] ; then
echo "[!] ERROR - wrong permissions on /http-confs"
exit 6
exit 1
fi
fi
# /modsec-confs
if [ ! -r "/modsec-confs" ] || [ ! -x "/modsec-confs" ] ; then
echo "[!] ERROR - wrong permissions on /modsec-confs"
exit 1
fi
# /modsec-crs-confs
if [ ! -r "/modsec-crs-confs" ] || [ ! -x "/modsec-crs-confs" ] ; then
echo "[!] ERROR - wrong permissions on /modsec-crs-confs"
exit 1
fi
# /acme-challenge
if [ ! -w "/acme-challenge" ] || [ ! -r "/acme-challenge" ] || [ ! -x "/acme-challenge" ] ; then
echo "[!] ERROR - wrong permissions on /acme-challenge"
exit 7
exit 1
fi
# /etc/nginx
if [ ! -w "/etc/nginx" ] || [ ! -r "/etc/nginx" ] || [ ! -x "/etc/nginx" ] ; then
echo "[!] ERROR - wrong permissions on /etc/nginx"
exit 8
exit 1
fi