Remove backup db 12/303512/3
authorminje.ahn <minje.ahn@samsung.com>
Fri, 29 Dec 2023 05:15:55 +0000 (14:15 +0900)
committerMinje ahn <minje.ahn@samsung.com>
Wed, 17 Jan 2024 06:32:27 +0000 (06:32 +0000)
The backup db has existed to initialize when the media.db file size exceeds db space.
However it is no longer needed.
Currently media.db only manages active external storage.

Change-Id: If0c10d6fc3de13ffec93ee25318fe159f9717a50
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
data/media.db [deleted file]
packaging/media-server.spec

diff --git a/data/media.db b/data/media.db
deleted file mode 100755 (executable)
index 783e3f0..0000000
Binary files a/data/media.db and /dev/null differ
index 501ad82..49ad0ce 100755 (executable)
@@ -116,8 +116,6 @@ cp -rf %{_builddir}/%{name}-%{version}/30_media-server-add.post %{buildroot}/etc
 #dummy db file for reset media DB
 %if 0%{?product_tv}
 cp -rf %{_builddir}/%{name}-%{version}/data/media_product.db %{buildroot}/etc/multimedia/.media.db
-%else
-cp -rf %{_builddir}/%{name}-%{version}/data/media.db %{buildroot}/etc/multimedia/.media.db
 %endif
 
 %post
@@ -149,10 +147,11 @@ chmod 755 /etc/gumd/useradd.d/30_media-server-add.post
 %if !0%{?product_tv}
 %{_unitdir_user}/media-server-user.service
 %{_unitdir_user}/media-server-user.path
+%else
+/etc/multimedia/.media.db
 %endif
 /etc/multimedia/media_content_config.ini
 /etc/gumd/useradd.d/30_media-server-add.post
-/etc/multimedia/.media.db
 %license LICENSE.APLv2.0
 
 %files -n libmedia-utils