From c66b31901a1991147a859221f81c4a0914aa9d6c Mon Sep 17 00:00:00 2001 From: szaimen Date: Wed, 6 Apr 2022 21:00:20 +0200 Subject: [PATCH] a few small improvements Signed-off-by: szaimen --- Containers/mastercontainer/backup-time-file-watcher.sh | 5 ++--- Containers/mastercontainer/session-deduplicator.sh | 2 +- php/templates/containers.twig | 6 +++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Containers/mastercontainer/backup-time-file-watcher.sh b/Containers/mastercontainer/backup-time-file-watcher.sh index 69b40ef6..593743e3 100644 --- a/Containers/mastercontainer/backup-time-file-watcher.sh +++ b/Containers/mastercontainer/backup-time-file-watcher.sh @@ -1,9 +1,8 @@ #!/bin/bash restart_process() { - set -x + echo "Restarting cron.sh because daily backup time was set or unset." pkill cron.sh - set +x } file_present() { @@ -22,5 +21,5 @@ file_present() { while true; do file_present - sleep 5 + sleep 2 done diff --git a/Containers/mastercontainer/session-deduplicator.sh b/Containers/mastercontainer/session-deduplicator.sh index 26508616..4326090a 100644 --- a/Containers/mastercontainer/session-deduplicator.sh +++ b/Containers/mastercontainer/session-deduplicator.sh @@ -1,7 +1,7 @@ #!/bin/bash while true; do - while "$(find "/mnt/docker-aio-config/session/" -mindepth 1 -exec grep "aio_authenticated|[a-z]:1" {} \; | wc -l)" -gt 1; do + while [ "$(find "/mnt/docker-aio-config/session/" -mindepth 1 -exec grep "aio_authenticated|[a-z]:1" {} \; | wc -l)" -gt 1 ]; do unset SESSION_FILES SESSION_FILES="$(find "/mnt/docker-aio-config/session/" -mindepth 1)" unset SESSION_FILES_ARRAY diff --git a/php/templates/containers.twig b/php/templates/containers.twig index f859bf71..f5cc93e9 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -118,7 +118,7 @@ @@ -297,7 +297,7 @@ Last {{ borg_backup_mode }} failed! (Logs)

{% elseif backup_exit_code == 0 %} {% if borg_backup_mode == "backup" %} - Last {{ borg_backup_mode }} successful on {{ last_backup_time }}! (Logs)

+ Last {{ borg_backup_mode }} successful on {{ last_backup_time }} CT! (Logs)

{% else %} Last {{ borg_backup_mode }} successful! (Logs)

{% endif %} @@ -342,7 +342,7 @@