|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
scriptVersion="1.0.004"
|
|
|
|
|
scriptVersion="1.0.1"
|
|
|
|
|
|
|
|
|
|
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
|
|
|
|
|
arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
@ -18,9 +18,11 @@ if [ -f "/config/logs/Recyclarr.txt" ]; then
|
|
|
|
|
find /config/logs -type f -name "Recyclarr.txt" -size +1024k -delete
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
touch "/config/logs/Recyclarr.txt"
|
|
|
|
|
if [ ! -f "/config/logs/Recyclarr.txt" ]; then
|
|
|
|
|
touch "/config/logs/Recyclarr.txt"
|
|
|
|
|
chmod 777 "/config/logs/Recyclarr.txt"
|
|
|
|
|
fi
|
|
|
|
|
exec &> >(tee -a "/config/logs/Recyclarr.txt")
|
|
|
|
|
chmod 666 "/config/logs/Recyclarr.txt"
|
|
|
|
|
|
|
|
|
|
log () {
|
|
|
|
|
m_time=`date "+%F %T"`
|
|
|
|
|