374b83a4b37c451af415e90e3f89422b522c03c8
[framework/telephony/tel-plugin-packetservice.git] / debian / tel-plugin-packetservice.postinst
1 #!/bin/sh
2
3 #create db
4 mkdir -p /opt/dbspace/
5
6 if [ ! -f /opt/dbspace/.dnet.db ]
7 then
8  sqlite3 /opt/dbspace/.dnet.db < /tmp/dnet_db.sql
9  sqlite3 /opt/dbspace/.dnet.db < /tmp/dnet_db_data.sql
10 fi
11
12  rm -f /tmp/dnet_db.sql
13  rm -f /tmp/dnet_db_data.sql
14
15 #Change File Permission
16 if [ -f /opt/dbspace/.dnet.db ]
17 then
18         chmod 600 /opt/dbspace/.dnet.db
19 fi
20
21 if [ -f /opt/dbspace/.dnet.db-journal ]
22 then
23         chmod 644 /opt/dbspace/.dnet.db-journal
24 fi