mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-27 02:32:06 -04:00
Fixed small mistakes in log messages
This commit is contained in:
@@ -99,7 +99,7 @@ class SwagUptimeKuma:
|
||||
self._api.delete_monitor(monitorData['id'])
|
||||
|
||||
def deleteMonitors(self, containerNames):
|
||||
print(f"{logPrefix} Deleting all monitors that had their containers removed")
|
||||
print(f"{logPrefix} Deleting all monitors that had their containers removed or were disabled")
|
||||
if (containerNames):
|
||||
for containerName in containerNames:
|
||||
self.deleteMonitor(containerName)
|
||||
@@ -152,7 +152,7 @@ class SwagUptimeKuma:
|
||||
|
||||
def getMonitorSwagTagValue(self, monitorData):
|
||||
"""
|
||||
This value is container name itself. Used to link containers with monitors
|
||||
This value is container name itself. Used to link containers with monitors.
|
||||
"""
|
||||
for tag in monitorData.get('tags'):
|
||||
if (has_key_with_value(tag, "name", self.swagTagName)):
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "[mod-swag-auto-uptime-kuma] Installing SWAG auto-uptime-kuma packages"
|
||||
echo "[mod-auto-uptime-kuma] Installing SWAG auto-uptime-kuma packages"
|
||||
|
||||
if ! pip list 2>&1 | grep -q "uptime-kuma-api\|docker"; then
|
||||
echo "\
|
||||
docker \
|
||||
uptime-kuma-api" >> /mod-pip-packages-to-install.list
|
||||
echo "[mod-swag-auto-uptime-kuma] Successfuly installed packages"
|
||||
echo "[mod-auto-uptime-kuma] Successfuly installed packages"
|
||||
else
|
||||
echo "[mod-swag-auto-uptime-kuma] Packages already installed, skipping..."
|
||||
echo "[mod-auto-uptime-kuma] Packages already installed, skipping..."
|
||||
fi
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [ -z "$UPTIME_KUMA_URL" ] || [ -z "$UPTIME_KUMA_USERNAME" ] || [ -z "$UPTIME_KUMA_PASSWORD" ]; then
|
||||
echo "[mod-swag-auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
|
||||
echo "[mod-auto-uptime-kuma] Missing required environment variables. Please refer to the Readme, skipping..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "[mod-swag-auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod"
|
||||
echo "[mod-auto-uptime-kuma] Executing SWAG auto-uptime-kuma mod"
|
||||
|
||||
scriptPath='/app/auto-uptime-kuma.py'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user