summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:51:48 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:51:48 +0900
commitd6aa47559c38d7e20d6d6a7a3671fa48ed58b9eb (patch)
tree5fbc758662a7866e32ec1adcfd9149c71987549e /debian/postinst
parent8fe192a924f295972402d46141e39b86241a1441 (diff)
downloadoma-ds-agent-d6aa47559c38d7e20d6d6a7a3671fa48ed58b9eb.tar.gz
oma-ds-agent-d6aa47559c38d7e20d6d6a7a3671fa48ed58b9eb.tar.bz2
oma-ds-agent-d6aa47559c38d7e20d6d6a7a3671fa48ed58b9eb.zip
Tizen 2.1 base
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst45
1 files changed, 45 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..711fa30
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,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