From 16e5de770bf61570a365998916905f51f6dc9043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Sun, 16 Jul 2023 22:06:30 +0200 Subject: [PATCH] updates/1.52.1.sh: Only set BACKUPHOUR if missing from config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com> --- updates/1.52.1.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 updates/1.52.1.sh diff --git a/updates/1.52.1.sh b/updates/1.52.1.sh new file mode 100644 index 00000000..24368770 --- /dev/null +++ b/updates/1.52.1.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +source /usr/local/etc/library.sh + +jq '.params[].id' "$CFGDIR/nc-backup-auto.cfg" | grep BACKUPHOUR || \ + set_app_param nc-backup-auto BACKUPHOUR 3