Don't stop service if MySQL isn't available yet
This commit is contained in:
parent
8752dc81c8
commit
ab3bbd3e25
|
@ -2,15 +2,6 @@
|
|||
|
||||
exec 2>&1
|
||||
|
||||
# Check if database is initialized
|
||||
DB=$(/sbin/e-smith/db configuration getprop phplist DbName || echo phplist)
|
||||
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 .
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd /usr/share/phplist/bin
|
||||
while true; do
|
||||
/usr/local/bin/setuidgid www ./phplist -pprocessbounces
|
||||
|
|
Loading…
Reference in New Issue