Last active
May 27, 2024 18:44
-
-
Save thomasmerz/6ebc63b75393b8fa149297820a377ad3 to your computer and use it in GitHub Desktop.
this script can be used to auto-update your wireguard docker instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shellcheck disable=SC2015 | |
cd /root/wireguard && \ | |
docker-compose --ansi never pull 2>&1 | grep "is up to date" || \ | |
{ | |
docker-compose --ansi never stop && docker-compose --ansi never up -d | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment