File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
init-mod-swag-auto-uptime-kuma-add-package
init-mod-swag-auto-uptime-kuma-install Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def deleteMonitor(self, containerName):
9999 self ._api .delete_monitor (monitorData ['id' ])
100100
101101 def deleteMonitors (self , containerNames ):
102- print (f"{ logPrefix } Deleting all monitors that had their containers removed" )
102+ print (f"{ logPrefix } Deleting all monitors that had their containers removed or were disabled " )
103103 if (containerNames ):
104104 for containerName in containerNames :
105105 self .deleteMonitor (containerName )
@@ -152,7 +152,7 @@ def monitorExists(self, containerName):
152152
153153 def getMonitorSwagTagValue (self , monitorData ):
154154 """
155- This value is container name itself. Used to link containers with monitors
155+ This value is container name itself. Used to link containers with monitors.
156156 """
157157 for tag in monitorData .get ('tags' ):
158158 if (has_key_with_value (tag , "name" , self .swagTagName )):
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3- echo "[mod-swag- auto-uptime-kuma] Installing SWAG auto-uptime-kuma packages"
3+ echo "[mod-auto-uptime-kuma] Installing SWAG auto-uptime-kuma packages"
44
55if ! pip list 2>&1 | grep -q "uptime-kuma-api\|docker"; then
66 echo "\
77 docker \
88 uptime-kuma-api" >> /mod-pip-packages-to-install.list
9- echo "[mod-swag- auto-uptime-kuma] Successfuly installed packages"
9+ echo "[mod-auto-uptime-kuma] Successfuly installed packages"
1010else
11- echo "[mod-swag- auto-uptime-kuma] Packages already installed, skipping..."
11+ echo "[mod-auto-uptime-kuma] Packages already installed, skipping..."
1212fi
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
33if [ -z "$UPTIME_KUMA_URL" ] || [ -z "$UPTIME_KUMA_USERNAME" ] || [ -z "$UPTIME_KUMA_PASSWORD" ]; then
4- echo "[mod-swag- auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
4+ echo "[mod-auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
55 exit 0
66fi
77
8- echo "[mod-swag- auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod"
8+ echo "[mod-auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod"
99
1010scriptPath='/app/auto-uptime-kuma.py'
1111
You can’t perform that action at this time.
0 commit comments