summaryrefslogtreecommitdiff
path: root/debian/postinst
blob: 711fa307fa2a334f975d8ef01d0d55d371dd812d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

echo ""
echo ""
echo "*********************************************************************************"
echo "			post install script run..."
echo "*********************************************************************************"
echo "executing oma agent unit test binary."

OMA_TEST_BIN="/usr/bin/oma-test"
if [ ! -e "$OMA_TEST_BIN" ]
then 
	echo "	oma-agent test binary missing. (check debian package is in release mode)"
else

	echo ""
	echo ""
	echo "*********************************************************************************"
	echo "			oma agent unit test run..."
	echo "*********************************************************************************"
	echo ""
	$OMA_TEST_BIN
fi
echo "create oma-ds directory"
if [ ! -d /opt/data/oma-ds ]
then
	mkdir /opt/data/oma-ds
fi

echo "deleting framework db files"
if [ -d /usr/share/sync-agent-framework ]
then
        rm -rf /usr/share/sync-agent-framework
fi

echo "deleting db files"
if [ -f /opt/dbspace/.omasyncagent.db ]
then
        rm -rf /opt/dbspace/.omasyncagent.db
fi

if [ -f /opt/dbspace/.omasyncagent.db-journal ]
then
        rm -rf /opt/dbspace/.omasyncagent.db-journal
fi