geoip - fix bug when using GeoIP

This commit is contained in:
bunkerity
2021-06-11 11:01:13 +02:00
parent c3a437fa82
commit dd5890e760
4 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ fi
# GeoIP
if [ "$(has_value BLACKLIST_COUNTRY .+)" != "" ] || [ "$(has_value WHITELIST_COUNTRY .+)" != "" ] ; then
if [ "$(has_value BLACKLIST_COUNTRY ".\+")" != "" ] || [ "$(has_value WHITELIST_COUNTRY ".\+")" != "" ] ; then
if [ -f "/cache/geoip.mmdb" ] ; then
echo "[*] Copying cached geoip.mmdb ..."
cp /cache/geoip.mmdb /etc/nginx/geoip.mmdb

View File

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