From: DoHyun Pyun Date: Tue, 16 Apr 2013 07:46:38 +0000 (+0900) Subject: Change the path of DB file X-Git-Tag: 2.1b_release^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02992644423bbb4a73f0bb34fd2a7c648d198112;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-share.git Change the path of DB file /opt/dbspace -> /opt/usr/dbspace Change-Id: I820d3ba64ce5244c726caf89eddf056ce807b27e --- diff --git a/lib/bt-share-db.h b/lib/bt-share-db.h index 2c25bc1..5983ae9 100644 --- a/lib/bt-share-db.h +++ b/lib/bt-share-db.h @@ -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 diff --git a/packaging/bluetooth-share.spec b/packaging/bluetooth-share.spec index 57af40c..79758e0 100644 --- a/packaging/bluetooth-share.spec +++ b/packaging/bluetooth-share.spec @@ -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