mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-06 16:11:47 -04:00
Merge pull request #480 from linuxserver/universal-wait-for-internet-s6v3
switch to hybrid (universal-wait-for-internet)
This commit is contained in:
@@ -1,5 +1,20 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
echo '
|
||||||
|
***********************************************************
|
||||||
|
***********************************************************
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
**** This mod "linuxserver/mods:wait-for-internet" ****
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
**** has been deprecated and will not receive updates ****
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
***********************************************************
|
||||||
|
***********************************************************'
|
||||||
|
|
||||||
# Loop until an active internet connection is established
|
# Loop until an active internet connection is established
|
||||||
until $(curl --max-time 60 -s -o /dev/null https://www.linuxserver.io/); do
|
until $(curl --max-time 60 -s -o /dev/null https://www.linuxserver.io/); do
|
||||||
# Sleep to allow cooldown
|
# Sleep to allow cooldown
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
echo '
|
||||||
|
***********************************************************
|
||||||
|
***********************************************************
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
**** This mod "linuxserver/mods:wait-for-internet" ****
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
**** has been deprecated and will not receive updates ****
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
**** ****
|
||||||
|
***********************************************************
|
||||||
|
***********************************************************'
|
||||||
|
|
||||||
|
# Loop until an active internet connection is established
|
||||||
|
until $(curl --max-time 60 -s -o /dev/null https://www.linuxserver.io/); do
|
||||||
|
# Sleep to allow cooldown
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
oneshot
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/etc/s6-overlay/s6-rc.d/init-mod-universal-wait-for-internet/run
|
||||||
Reference in New Issue
Block a user