Fix the variable name.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 18 Jul 2013 01:48:32 +0000 (10:48 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 18 Jul 2013 01:50:24 +0000 (10:50 +0900)
Change-Id: I58b619ed9dce36dbfe12c67f1076f1e6edd76a5d

packaging/data-provider-master.spec

index 0e4c05b..131cbfb 100644 (file)
@@ -67,9 +67,9 @@ touch %{buildroot}/opt/dbspace/.livebox.db
 touch %{buildroot}/opt/dbspace/.livebox.db-journal
 #ln -sf %{_sysconfdir}/rc.d/init.d/data-provider-master %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S99data-provider-master
 ln -sf %{_libdir}/systemd/user/data-provider-master.service %{buildroot}/%{_libdir}/systemd/user/tizen-middleware.target.wants/data-provider-master.service
-if [ ! -s ${buildroot}/opt/dbspace/.livebox.db ]; then
+if [ ! -s %{buildroot}/opt/dbspace/.livebox.db ]; then
 echo "LiveBox DB file is not exists, initiate it"
-sqlite3 ${buildroot}/opt/dbspace/.livebox.db <<EOF
+sqlite3 %{buildroot}/opt/dbspace/.livebox.db <<EOF
 CREATE TABLE box_size ( pkgid TEXT NOT NULL, size_type INTEGER, preview TEXT, touch_effect INTEGER, need_frame INTEGER, FOREIGN KEY(pkgid) REFERENCES pkgmap(pkgid) ON DELETE CASCADE);
 CREATE TABLE client (pkgid TEXT PRIMARY KEY NOT NULL, icon TEXT, name TEXT, auto_launch TEXT, pd_size TEXT, content TEXT DEFAULT 'default', nodisplay INTEGER, setup TEXT, mouse_event INTEGER, FOREIGN KEY(pkgid) REFERENCES pkgmap(pkgid) ON DELETE CASCADE);
 CREATE TABLE groupinfo ( id INTEGER PRIMARY KEY AUTOINCREMENT, cluster TEXT NOT NULL, category TEXT NOT NULL, pkgid TEXT NOT NULL, FOREIGN KEY(pkgid) REFERENCES pkgmap(pkgid) ON DELETE CASCADE);