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 .