Update reset.sh
This commit is contained in:
parent
39a6e5cd91
commit
ad4771359f
1 changed files with 7 additions and 4 deletions
11
reset.sh
11
reset.sh
|
@ -1,12 +1,15 @@
|
|||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
. .env
|
||||
|
||||
# Uncomment if rotating IPv6
|
||||
# echo "Rotating IP..."
|
||||
# python3 smart-ipv6-rotator/smart-ipv6-rotator.py run --ipv6range=2001:db8::/32
|
||||
if [ -n $IPV6_SUBNET ]; then
|
||||
echo "Rotating IP..."
|
||||
python3 smart-ipv6-rotator/smart-ipv6-rotator.py run --ipv6range=$IPV6_SUBNET
|
||||
fi
|
||||
|
||||
echo "Updating..."
|
||||
docker compose pull
|
||||
|
||||
echo "Restarting..."
|
||||
docker compose down
|
||||
docker compose up -d
|
||||
docker compose up -d
|
||||
|
|
Reference in a new issue