Skip to content

Instantly share code, notes, and snippets.

@thomasmerz
Last active May 27, 2024 18:44
Show Gist options
  • Save thomasmerz/6ebc63b75393b8fa149297820a377ad3 to your computer and use it in GitHub Desktop.
Save thomasmerz/6ebc63b75393b8fa149297820a377ad3 to your computer and use it in GitHub Desktop.
this script can be used to auto-update your wireguard docker instance
#!/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