From 75da4576bf77a94046e397f79f7b3d4651d1633c Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 27 Jul 2025 01:17:23 +0100 Subject: Added missing python dependency to Dockerfile --- autoBackup/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoBackup/Dockerfile b/autoBackup/Dockerfile index edcaf84..018ad55 100644 --- a/autoBackup/Dockerfile +++ b/autoBackup/Dockerfile @@ -1,8 +1,9 @@ -FROM ubuntu:20.04 +FROM ubuntu:22.04 ENV TZ=Europe/London RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN apt-get update -y -RUN apt-get install -y python3-pip iputils-ping cron +RUN apt-get install -y python3-pip iputils-ping cron git +RUN git clone https://github.com/monitorjbl/api_client.git /api_client && cd /api_client && python3 setup.py install && rm -rf /api_client COPY . /app WORKDIR /app RUN pip3 install -r requirements.txt -- cgit v1.2.3 From ff64c2c2954b4533221160316cbb2a1005752303 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 27 Jul 2025 01:18:17 +0100 Subject: Appended README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5561a8d..dbbc2b4 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ it is shut down, and once the plug is pulling 0w, which implies the TrueNAS has If the Tasmota MQTT plug was already on when the script starts, it implies that the `slave` TrueNAS was started manually, so it won't automatically be switched off. -It is recommended to run ZFS scrub tasks manually occasionally, since they probably won't be run automatically by TrueNAS. +~~It is recommended to run ZFS scrub tasks manually occasionally, since they probably won't be run automatically by TrueNAS.~~ A script to automatically run ZFS scrub jobs every month has been added. A Dockerfile is provided so you can automatically run this script as a cronjob. -- cgit v1.2.3