check for null database names in details file
This commit is contained in:
parent
ca190c89bb
commit
6fec178fae
@ -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" \
|
||||||
|
Loading…
Reference in New Issue
Block a user