summaryrefslogtreecommitdiff
path: root/email-service
blob: 6b2c00cbc51afa50f98fe94969883bcc0785e50e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin

source /etc/tizen-platform.conf

account_count=$(sqlite3 ${TZ_USER_DB}/.email-service.db "select COUNT(*) from mail_account_tbl")
if [ "$(echo "$account_count" | cut -c0-1)" == "0" ]
then
	echo 'There is no account'
elif [ "$(echo "$account_count" | cut -c0-1)" == "" ]
then
	echo 'DB failure'
else
	/usr/bin/email-service &
fi