1.0.268 - New Logging to log file process

pull/139/head
RandomNinjaAtk 2 years ago committed by GitHub
parent b24fd51045
commit 90946be803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.267"
scriptVersion="1.0.268"
if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then
lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$lidarrUrlBase" == "null" ]; then
@ -38,6 +38,14 @@ log () {
echo $m_time" :: Extended Audio :: "$1
}
if [ -f "/config/logs/Audio.txt" ]; then
rm "/config/logs/Audio.txt"
sleep 0.01
fi
exec &> >(tee -a "/config/logs/Audio.txt")
touch "/config/logs/Audio.txt"
chmod 666 "/config/logs/Audio.txt"
verifyApiAccess () {
until false
do

Loading…
Cancel
Save