Skip to content

Commit

Permalink
Update and rename 10-test_vpn.sh to 02-test_vpn.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Dec 13, 2023
1 parent 1c487ad commit ac62bb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
14 changes: 14 additions & 0 deletions qbittorrent/rootfs/etc/cont-init.d/02-test_vpn.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash

# wait until vpn is up
sleep 5

# test if vpn is up
counter=0
until [ "$counter" -gt 5 ]
do
ping -c 1 1.1.1.1 &> /dev/null && break || true
((counter++))
sleep 5
done
11 changes: 0 additions & 11 deletions qbittorrent/rootfs/etc/cont-init.d/10-test_vpn.sh

This file was deleted.

0 comments on commit ac62bb0

Please sign in to comment.