Detected corrupt/missing conf file where possible...
#56 - Should help prevent this going forward...
This commit is contained in:
parent
e2dc7de05a
commit
c17868b51d
1 changed files with 16 additions and 0 deletions
|
@ -52,3 +52,19 @@ verifyApiAccess () {
|
|||
fi
|
||||
done
|
||||
}
|
||||
|
||||
ConfValidationCheck () {
|
||||
logfileSetup
|
||||
if [ ! -f "/config/extended.conf" ]; then
|
||||
log "ERROR :: \"extended.conf\" file is missing..."
|
||||
log "ERROR :: Download the extended.conf config file and place it into \"/config\" folder..."
|
||||
log "ERROR :: Exiting..."
|
||||
exit
|
||||
fi
|
||||
if [ -z "$enableAutoConfig" ]; then
|
||||
log "ERROR :: \"extended.conf\" file is unreadable..."
|
||||
log "ERROR :: Likely caused by editing with a non unix/linux compatible editor, to fix, replace the file with a valid one or correct the line endings..."
|
||||
log "ERROR :: Exiting..."
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue