road to swarm - fixing things

This commit is contained in:
bunkerity
2021-03-12 17:31:26 +01:00
parent 95f7ca5b2d
commit 3591715f21
12 changed files with 57 additions and 51 deletions

View File

@@ -103,7 +103,7 @@ rsyslogd
crond
# wait until config has been generated if we are in swarm mode
if [ "$SWARM_MODE" != "yes" ] ; then
if [ "$SWARM_MODE" = "yes" ] ; then
echo "[*] Waiting until config has been generated ..."
while [ ! -f "/etc/nginx/autoconf" ] ; do
sleep 1
@@ -112,7 +112,7 @@ fi
# stop temp config if needed
if [ -f "/tmp/nginx-temp.pid" ] ; then
nginx -c /etc/nginx/nginx-temp.conf -s quit
nginx -c /tmp/nginx-temp.conf -s quit
fi
# run nginx

View File

@@ -1,5 +1,12 @@
#!/bin/bash
# load default values
. /opt/entrypoint/defaults.sh
# load some functions
. /opt/entrypoint/utils.sh
# copy stub confs
cp /opt/logs/rsyslog.conf /etc/rsyslog.conf
cp /opt/logs/logrotate.conf /etc/logrotate.conf