From 5bb290796b0d88806d9e0b12650bb9c1365686e4 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 30 Jul 2014 15:10:37 +0200 Subject: [PATCH] Pass HOME=/root so mysql check can run --- root/var/service/phplist/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/var/service/phplist/run b/root/var/service/phplist/run index 9d6013a..20eea3b 100644 --- a/root/var/service/phplist/run +++ b/root/var/service/phplist/run @@ -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 .