2.3 - Move import settings to functoin
This commit is contained in:
parent
c36106ae7f
commit
066f3452be
1 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,7 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
scriptVersion="2.2"
|
scriptVersion="2.3"
|
||||||
scriptName="Video"
|
scriptName="Video"
|
||||||
|
|
||||||
#### Import Settings
|
|
||||||
source /config/extended.conf
|
|
||||||
videoContainer=mkv
|
|
||||||
|
|
||||||
log () {
|
log () {
|
||||||
m_time=`date "+%F %T"`
|
m_time=`date "+%F %T"`
|
||||||
echo $m_time" :: $scriptName :: $scriptVersion :: "$1
|
echo $m_time" :: $scriptName :: $scriptVersion :: "$1
|
||||||
|
@ -23,6 +19,10 @@ logfileSetup () {
|
||||||
}
|
}
|
||||||
|
|
||||||
verifyConfig () {
|
verifyConfig () {
|
||||||
|
#### Import Settings
|
||||||
|
source /config/extended.conf
|
||||||
|
videoContainer=mkv
|
||||||
|
|
||||||
if [ "$enableVideo" != "true" ]; then
|
if [ "$enableVideo" != "true" ]; then
|
||||||
log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..."
|
log "Script is not enabled, enable by setting enableVideo to \"true\" by modifying the \"/config/extended.conf\" config file..."
|
||||||
log "Sleeping (infinity)"
|
log "Sleeping (infinity)"
|
||||||
|
|
Loading…
Reference in a new issue