From 70e1653fa08cdc73e4e87924d91eef38a3500487 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 8 Feb 2025 09:21:18 -0600 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index f76276b..35e574b 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -654,7 +654,10 @@ INSTALL_WATCHTOWER() { [Nn]) t=t;; * ) echo - + if [ ! "$(docker ps -q -f name=watchtower)" ]; then + docker stop watchtower + docker rm watchtower + fi docker run --detach \ --name watchtower \ -v /var/run/docker.sock:/var/run/docker.sock \ @@ -663,6 +666,15 @@ INSTALL_WATCHTOWER() { -e WATCHTOWER_INCLUDE_RESTARTING=true \ -e WATCHTOWER_SCHEDULE="0 0 4 * * *" \ -e WATCHTOWER_ROLLING_RESTART=true \ + -e WATCHTOWER_NOTIFICATIONS=email \ + -e WATCHTOWER_NOTIFICATION_EMAIL_FROM=watchtower-$(hostname)@scity.us \ + -e WATCHTOWER_NOTIFICATION_EMAIL_TO=b3upzaom7a@pomail.net \ + -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.scity.us \ + -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25 \ + -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_TLS_SKIP_VERIFY=true \ + # -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=fromaddress@gmail.com \ + # -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=app_password \ + # -e WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2 \ containrrr/watchtower echo