a few small improvements

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-04-06 21:00:20 +02:00
parent 94f0a799fc
commit c66b31901a
3 changed files with 6 additions and 7 deletions

View file

@ -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

View file

@ -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