You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
490 B
19 lines
490 B
#!/bin/sh
|
|
|
|
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
|
|
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
|
|
/usr/local/bin/setuidgid www ./phplist -pprocessqueue
|
|
sleep 120
|
|
done
|
|
|