mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-30 03:53:18 -04:00
21 lines
681 B
Plaintext
21 lines
681 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 swag-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
|