check for null database names in details file

This commit is contained in:
Asif Bacchus 2019-06-20 03:37:17 -06:00
parent ca190c89bb
commit 6fec178fae

View File

@ -491,6 +491,10 @@ fi
if [ -z "${sqlPass}" ]; then if [ -z "${sqlPass}" ]; then
badDetails empty 'sqlPass' badDetails empty 'sqlPass'
fi fi
# database names
if [ -z "${ccnetDB_name}" ] || [ -z "${seafileDB_name}" ] || [ -z "${seahubDB_name}" ]; then
badDetails empty 'one or more mysql database names'
fi
## create tmp directory and generate dumpfile names ## create tmp directory and generate dumpfile names
printf "${cyan}[%s] -- [INFO] Dumping SQL databases --${norm}\n" \ printf "${cyan}[%s] -- [INFO] Dumping SQL databases --${norm}\n" \