Update InvalidSeriesAutoCleaner.service
This commit is contained in:
parent
f7e3867f44
commit
ce0e3579d3
1 changed files with 16 additions and 7 deletions
|
@ -1,5 +1,20 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
scriptVersion="1.1"
|
scriptVersion="1.2"
|
||||||
|
scriptName="InvalidSeriesAutoCleaner"
|
||||||
|
|
||||||
|
#### Import Settings
|
||||||
|
source /config/extended.conf
|
||||||
|
|
||||||
|
log () {
|
||||||
|
m_time=`date "+%F %T"`
|
||||||
|
echo $m_time" :: $scriptName :: $scriptVersion :: "$1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$enableInvalidSeriesAutoCleaner" != "true" ]; then
|
||||||
|
log "Script is not enabled, enable by setting enableInvalidSeriesAutoCleaner to \"true\" by modifying the \"/config/extended.conf\" config file..."
|
||||||
|
log "Sleeping (infinity)"
|
||||||
|
sleep infinity
|
||||||
|
fi
|
||||||
|
|
||||||
getArrAppInfo () {
|
getArrAppInfo () {
|
||||||
# Get Arr App information
|
# Get Arr App information
|
||||||
|
@ -37,12 +52,6 @@ verifyApiAccess () {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
log () {
|
|
||||||
m_time=`date "+%F %T"`
|
|
||||||
echo $m_time" :: InvalidSeriesAutoCleaner :: $scriptVersion :: "$1
|
|
||||||
}
|
|
||||||
|
|
||||||
InvalidSeriesAutoCleanerProcess () {
|
InvalidSeriesAutoCleanerProcess () {
|
||||||
# auto-clean up log file to reduce space usage
|
# auto-clean up log file to reduce space usage
|
||||||
if [ -f "/config/logs/SeriesAutoDelete.txt" ]; then
|
if [ -f "/config/logs/SeriesAutoDelete.txt" ]; then
|
||||||
|
|
Loading…
Reference in a new issue