Pass HOME=/root so mysql check can run

tags/smeserver-phplist-0.2.1-1
Daniel Berteaud 10 years ago
parent e62ef77c82
commit 5bb290796b
  1. 2
      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 .

Loading…
Cancel
Save