This commit is contained in:
gilbn 2020-10-04 23:22:19 +02:00
parent 8ec98666fc
commit 5e5da3d880

View file

@ -23,6 +23,7 @@ cp -f /geoip2influx/geoip2influx.py /config/geoip2db
# move old log if needed # move old log if needed
if [ -f /config/geoip2db/geoip2influx.log ]; then if [ -f /config/geoip2db/geoip2influx.log ]; then
mv /config/geoip2db/geoip2influx.log /config/log/geoip2influx mv /config/geoip2db/geoip2influx.log /config/log/geoip2influx
fi
# create GeoIP2 folder symlink # create GeoIP2 folder symlink
[[ -d /var/lib/libmaxminddb ]] && [[ ! -L /var/lib/libmaxminddb ]] && \ [[ -d /var/lib/libmaxminddb ]] && [[ ! -L /var/lib/libmaxminddb ]] && \
rm -rf /var/lib/libmaxminddb rm -rf /var/lib/libmaxminddb