|
|
@ -1,5 +1,5 @@
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
scriptVersion="1.0.1"
|
|
|
|
scriptVersion="1.0.2"
|
|
|
|
arrEventType="$radarr_eventtype"
|
|
|
|
arrEventType="$radarr_eventtype"
|
|
|
|
|
|
|
|
|
|
|
|
# auto-clean up log file to reduce space usage
|
|
|
|
# auto-clean up log file to reduce space usage
|
|
|
@ -7,8 +7,10 @@ if [ -f "/config/logs/SMA.txt" ]; then
|
|
|
|
find /config/logs -type f -name "SMA.txt" -size +1024k -delete
|
|
|
|
find /config/logs -type f -name "SMA.txt" -size +1024k -delete
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
touch "/config/logs/SMA.txt"
|
|
|
|
if [ ! -f "/config/logs/SMA.txt" ]; then
|
|
|
|
chmod 666 "/config/logs/SMA.txt"
|
|
|
|
touch "/config/logs/SMA.txt"
|
|
|
|
|
|
|
|
chmod 777 "/config/logs/SMA.txt"
|
|
|
|
|
|
|
|
fi
|
|
|
|
exec &> >(tee -a "/config/logs/SMA.txt")
|
|
|
|
exec &> >(tee -a "/config/logs/SMA.txt")
|
|
|
|
|
|
|
|
|
|
|
|
log () {
|
|
|
|
log () {
|
|
|
|