Pass HOME=/root so mysql check can run

This commit is contained in:
Daniel Berteaud 2014-07-30 15:10:37 +02:00
parent e62ef77c82
commit 5bb290796b
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ exec 2>&1
# Check if database is initialized
DB=$(/sbin/e-smith/db configuration getprop phplist DbName || echo phplist)
/usr/bin/mysql $DB -e "SELECT value FROM phplist_config WHERE item='version';" >/dev/null 2>&1
HOME=/root /usr/bin/mysql $DB -e "SELECT value FROM phplist_config WHERE item='version';" >/dev/null
if [ $? -ne 0 ]; then
echo "PHPList database not initialized yet"
sv d .