Change the path of DB file 2.1b_release accepted/tizen_2.1/20130425.035324 submit/tizen_2.1/20130424.231117
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 16 Apr 2013 07:46:38 +0000 (16:46 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 16 Apr 2013 07:46:38 +0000 (16:46 +0900)
/opt/dbspace -> /opt/usr/dbspace

Change-Id: I820d3ba64ce5244c726caf89eddf056ce807b27e

lib/bt-share-db.h
packaging/bluetooth-share.spec

index 2c25bc1..5983ae9 100644 (file)
@@ -24,7 +24,7 @@
 extern "C" {
 #endif
 
-#define BT_TRANSFER_DB         "/opt/dbspace/.bluetooth_trasnfer.db"
+#define BT_TRANSFER_DB         "/opt/usr/dbspace/.bluetooth_trasnfer.db"
 #define BT_INBOUND_TABLE       "inbound"
 #define BT_OUTBOUND_TABLE      "outbound"
 #define BT_DB_QUERY_LEN                512
index 57af40c..79758e0 100644 (file)
@@ -81,9 +81,9 @@ then
        ln -s /opt/storage/sdcard /opt/share/bt-ftp/SD_External
 fi
 
-if [ ! -f /opt/dbspace/.bluetooth_trasnfer.db ]
+if [ ! -f /opt/usr/dbspace/.bluetooth_trasnfer.db ]
 then
-       sqlite3 /opt/dbspace/.bluetooth_trasnfer.db 'PRAGMA journal_mode = PERSIST;
+       sqlite3 /opt/usr/dbspace/.bluetooth_trasnfer.db 'PRAGMA journal_mode = PERSIST;
         create table if not exists inbound (
                id INTEGER PRIMARY KEY autoincrement,
                sid INTEGER,
@@ -109,15 +109,15 @@ then
        '
 fi
 
-chown :5000 /opt/dbspace/.bluetooth_trasnfer.db
-chown :5000 /opt/dbspace/.bluetooth_trasnfer.db-journal
-chmod 660 /opt/dbspace/.bluetooth_trasnfer.db
-chmod 660 /opt/dbspace/.bluetooth_trasnfer.db-journal
+chown :5000 /opt/usr/dbspace/.bluetooth_trasnfer.db
+chown :5000 /opt/usr/dbspace/.bluetooth_trasnfer.db-journal
+chmod 660 /opt/usr/dbspace/.bluetooth_trasnfer.db
+chmod 660 /opt/usr/dbspace/.bluetooth_trasnfer.db-journal
 
 if [ -f /usr/lib/rpm-plugins/msm.so ]
 then
-chsmack -a 'bt_share::db' /opt/dbspace/.bluetooth_trasnfer.db
-chsmack -a 'bt_share::db' /opt/dbspace/.bluetooth_trasnfer.db-journal
+chsmack -a 'bt_share::db' /opt/usr/dbspace/.bluetooth_trasnfer.db
+chsmack -a 'bt_share::db' /opt/usr/dbspace/.bluetooth_trasnfer.db-journal
 fi
 
 %files