Fix upgrade script number 94/136594/1 accepted/tizen/unified/20170705.163011 submit/tizen/20170704.073704 submit/tizen/20170705.025248
authorsangwan.kwon <sangwan.kwon@samsung.com>
Fri, 30 Jun 2017 07:53:01 +0000 (16:53 +0900)
committerKyungim Jung <kyung@samsung.com>
Fri, 30 Jun 2017 09:18:05 +0000 (09:18 +0000)
* Accordig to OS upgrade team's guide, this script would be run as 240.

Change-Id: If6c320a9edf9243e0846af33a07e5bcc1d9cfedb
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
(cherry picked from commit c628dbf7efcbecc79412da7b65b81ac6b8505bb0)

packaging/drm-service-core-tizen.spec
scripts/200.drm-service-core-tizen.sh [deleted file]
scripts/240.drm-service-core-tizen.sh [new file with mode: 0755]

index f76833482ca907b4cdd666f3364d0636977523b3..597c6801e598a693ee2249fbd21fc68e869e8771 100755 (executable)
@@ -71,7 +71,7 @@ make %{?_smp_mflags}
 %install
 %make_install
 mkdir -p %{buildroot}%{upgrade_script_dir}
-cp scripts/200.drm-service-core-tizen.sh %{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 +89,7 @@ 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}/200.drm-service-core-tizen.sh
+%{upgrade_script_dir}/240.drm-service-core-tizen.sh
 
 %files devel
 %{_libdir}/pkgconfig/%{name}.pc
diff --git a/scripts/200.drm-service-core-tizen.sh b/scripts/200.drm-service-core-tizen.sh
deleted file mode 100755 (executable)
index a27d7ae..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        200.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*
diff --git a/scripts/240.drm-service-core-tizen.sh b/scripts/240.drm-service-core-tizen.sh
new file mode 100755 (executable)
index 0000000..da4cdb7
--- /dev/null
@@ -0,0 +1,24 @@
+#!/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*