road to v1.2.3 - fixing bugs

This commit is contained in:
bunkerity
2021-03-17 17:55:56 +01:00
parent c40fb33175
commit afc6678855
22 changed files with 98 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
# copy old conf to cache
cp /etc/nginx/block-abusers.conf /cache

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
job_log "[CERTBOT] certificates have been renewed"

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
# ask new certificates if needed
certbot renew --deploy-hook /opt/scripts/certbot-renew-hook.sh

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
# copy old conf to cache
cp /etc/nginx/block-tor-exit-node.conf /cache

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
# if we are running nginx
if [ -f /tmp/nginx.pid ] ; then

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
logrotate -f /etc/logrotate.conf > /dev/null 2>&1

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
# copy old conf to cache
cp /etc/nginx/block-proxies.conf /cache

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
# save old conf
cp /etc/nginx/map-referrer.conf /cache

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# load some functions
. /opt/scripts/utils.sh
. /opt/entrypoint/utils.sh
# save old conf
cp /etc/nginx/map-user-agent.conf /cache

View File

@@ -1,8 +0,0 @@
#!/bin/sh
function job_log() {
when="$(date '+[%d/%m/%Y %H:%M:%S]')"
what="$1"
echo "$when $what" >> /var/log/jobs.log
}