mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-01-30 06:21:59 +08:00
Merge pull request #462 from linuxserver/swag-dbip-s6v3
switch to hybrid (swag-dbip)
This commit is contained in:
commit
e217c4e5e7
17
root/etc/s6-overlay/s6-rc.d/init-mod-swag-dbip-setup/run
Executable file
17
root/etc/s6-overlay/s6-rc.d/init-mod-swag-dbip-setup/run
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "Applying the dbip mod..."
|
||||
|
||||
chmod +x /etc/periodic/weekly/dbip
|
||||
|
||||
# check GeoIP2 database
|
||||
if [ ! -f /config/geoip2db/dbip-country-lite.mmdb ]; then
|
||||
echo "Downloading GeoIP2 City database."
|
||||
/etc/periodic/weekly/dbip
|
||||
fi
|
||||
|
||||
if [ ! -f /config/nginx/dbip.conf ]; then
|
||||
cp /defaults/dbip.conf /config/nginx/dbip.conf
|
||||
fi
|
||||
|
||||
echo "Applied the dbip mod"
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-mod-swag-dbip-setup/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-mod-swag-dbip-setup/up
Normal file
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-swag-dbip-setup/run
|
||||
Loading…
x
Reference in New Issue
Block a user