mirror of
https://github.com/casjaysdevdocker/ifconfig
synced 2025-01-18 00:34:19 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/tmp/init.sh
This commit is contained in:
parent
9470c63cb6
commit
1393cd7927
@ -39,6 +39,11 @@ trap 'exitCode=${exitCode:-$?};[ -n "$INIT_SH_TEMP_FILE" ] && [ -f "$INIT_SH_TEM
|
||||
set -o pipefail
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
for f in GeoLite2-ASN GeoLite2-City GeoLite2-Country; do
|
||||
curl -q -LSsf "https://github.com/P3TERX/GeoLite.mmdb/raw/download/$f.mmdb" -o "/opt/echoip/geoip/$f.mmdb"
|
||||
[ -f "/opt/echoip/geoip/$f.mmdb" ] && echo "Installed $f.mmdb to /opt/echoip/geoip" || exit 10
|
||||
if curl -q -LSsf "https://github.com/P3TERX/GeoLite.mmdb/raw/download/$f.mmdb" -o "/opt/echoip/geoip/$f.tmp"; then
|
||||
mv -f "/opt/echoip/geoip/$f.tmp" "/opt/echoip/geoip/$f.mmdb"
|
||||
[ -f "/opt/echoip/geoip/$f.mmdb" ] && echo "Installed $f.mmdb to /opt/echoip/geoip"
|
||||
else
|
||||
echo "Failed to update GeoIP $f"
|
||||
exit 10
|
||||
fi
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user