|
|
@ -4,7 +4,7 @@ exec 2>&1 |
|
|
|
|
|
|
|
|
|
|
|
# Check if database is initialized |
|
|
|
# Check if database is initialized |
|
|
|
DB=$(/sbin/e-smith/db configuration getprop phplist DbName || echo phplist) |
|
|
|
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 |
|
|
|
if [ $? -ne 0 ]; then |
|
|
|
echo "PHPList database not initialized yet" |
|
|
|
echo "PHPList database not initialized yet" |
|
|
|
sv d . |
|
|
|
sv d . |
|
|
|