Remove old update script 62/147962/1
authorSunmin Lee <sunm.lee@samsung.com>
Tue, 5 Sep 2017 08:17:07 +0000 (17:17 +0900)
committerDong Sun Lee <ds73.lee@samsung.com>
Wed, 6 Sep 2017 06:34:40 +0000 (06:34 +0000)
RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
Remove this file to avoid being executed during Tizen 4.0 update.

Change-Id: Iee17c2a20a6aa3b5ce206cdda00565ab8766d5c0
(cherry picked from commit fb32653b859e7ffeb57e89fe5b1cfb13124d69f1)

packaging/drm-service-core-tizen.spec
scripts/240.drm-service-core-tizen.sh [deleted file]

index 597c680..7609944 100755 (executable)
@@ -21,7 +21,6 @@ BuildRequires:  pkgconfig(libtzplatform-config)
 %global sys_home %{?TZ_SYS_HOME:%TZ_SYS_HOME}%{!?TZ_SYS_HOME:/opt/usr/home}
 %global test_data_dir %{sys_home}/drm_test
 
-%global upgrade_script_dir %{ro_share_dir}/upgrade/scripts
 %global db_dir %{?TZ_SYS_DB:%TZ_SYS_DB}%{!?TZ_SYS_DB:/opt/dbspace}
 
 %description
@@ -70,8 +69,6 @@ make %{?_smp_mflags}
 
 %install
 %make_install
-mkdir -p %{buildroot}%{upgrade_script_dir}
-cp scripts/240.drm-service-core-tizen.sh %{buildroot}%{upgrade_script_dir}/
 
 %post
 %{bin_dir}/rm -f /etc/ld.so.cache
@@ -89,7 +86,6 @@ chmod 600 %{db_dir}/.dtapps.db*
 %{_libdir}/lib%{name}.so.*
 %{bin_dir}/drm_tizen_initialize
 %{ro_data_dir}/root_certs/ro_root_cert.pem
-%{upgrade_script_dir}/240.drm-service-core-tizen.sh
 
 %files devel
 %{_libdir}/pkgconfig/%{name}.pc
diff --git a/scripts/240.drm-service-core-tizen.sh b/scripts/240.drm-service-core-tizen.sh
deleted file mode 100755 (executable)
index da4cdb7..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-#
-#    Licensed under the Apache License, Version 2.0 (the "License");
-#    you may not use this file except in compliance with the License.
-#    You may obtain a copy of the License at
-#
-#        http://www.apache.org/licenses/LICENSE-2.0
-#
-#    Unless required by applicable law or agreed to in writing, software
-#    distributed under the License is distributed on an "AS IS" BASIS,
-#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#    See the License for the specific language governing permissions and
-#    limitations under the License.
-#
-# @file        240.drm-service-core-tizen.sh
-# @author      Kyungwook Tak (k.tak@samsung.com)
-# @breif
-
-chsmack -a "System" /opt/dbspace/.dtapps.db*
-chown app_fw:app_fw /opt/dbspace/.dtapps.db*
-chmod 600 /opt/dbspace/.dtapps.db*