From e6b5df8411807c2c1c3db3ea283e5ded3ca19f58 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 9 Nov 2022 05:43:23 -0500 Subject: [PATCH] Update AutoConfig.bash --- root/scripts/AutoConfig.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/root/scripts/AutoConfig.bash b/root/scripts/AutoConfig.bash index ca05cad..d5b7839 100644 --- a/root/scripts/AutoConfig.bash +++ b/root/scripts/AutoConfig.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.4" +scriptVersion="1.0.5" if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -18,8 +18,9 @@ if [ -f "/config/logs/AutoConfig.txt" ]; then find /config/logs -type f -name "AutoConfig.txt" -size +1024k -delete fi -exec &>> "/config/logs/AutoConfig.txt" +touch "/config/logs/AutoConfig.txt" chmod 666 "/config/logs/AutoConfig.txt" +exec &> >(tee -a "/config/logs/AutoConfig.txt") log () { m_time=`date "+%F %T"`