mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-04 23:35:13 -04:00
63b9b167ec
Quick patch to install version 3 of the geoip2 module, to keep the mod working
21 lines
688 B
Plaintext
21 lines
688 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
if [ ! -d /usr/lib/python3.8/site-packages/geoip2 ]; then
|
|
echo '------------------------------------------------------------------------'
|
|
echo '| Running installation of required modules for letsencrypt-f2bdiscord'
|
|
echo '------------------------------------------------------------------------'
|
|
pip3 install --no-cache-dir -U \
|
|
requests \
|
|
argparse \
|
|
geoip2==3.0.0
|
|
fi
|
|
|
|
if [ ! -f /config/fail2ban/Fail2Ban.py ]; then
|
|
cp /AwesomeFolder/Fail2Ban.py /config/fail2ban/
|
|
chmod +x /config/fail2ban/Fail2Ban.py
|
|
fi
|
|
|
|
if [ ! -f /config/fail2ban/action.d/discordEmbed.conf ]; then
|
|
cp /AwesomeFolder/discordEmbed.conf /config/fail2ban/action.d
|
|
fi
|