From: sangwan.kwon Date: Fri, 9 Dec 2016 01:10:30 +0000 (+0900) Subject: Add number to upgrade script X-Git-Tag: submit/tizen_unified/20170309.042728^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9003f56a78705ad5cfeb9b1042f9dba6fe214af6;p=platform%2Fcore%2Fsecurity%2Fca-certificates-tizen.git Add number to upgrade script Change-Id: I89fddfb1061d4ce4451b86bc5c12f22e18bfe5a0 Signed-off-by: sangwan.kwon --- diff --git a/packaging/ca-certificates-tizen.spec b/packaging/ca-certificates-tizen.spec index 8461c8d..a81b249 100644 --- a/packaging/ca-certificates-tizen.spec +++ b/packaging/ca-certificates-tizen.spec @@ -83,7 +83,7 @@ echo "%TZ_SYS_REVOKED_CERTS_FINGERPRINTS_RUNTIME %{fingerprint_rw_dir}/fingerpri %{fingerprint_dir}/* %{fingerprint_rw_dir}/fingerprint_list_runtime.xml -%attr(775, root, root) %{upgrade_script_dir}/ca-certificates-tizen-upgrade.sh +%attr(775, root, root) %{upgrade_script_dir}/500.ca-certificates-tizen-upgrade.sh %{upgrade_data_dir}/fingerprint_list_runtime.xml %files devel diff --git a/tools/upgrade/500.ca-certificates-tizen-upgrade.sh.in b/tools/upgrade/500.ca-certificates-tizen-upgrade.sh.in new file mode 100644 index 0000000..2289cdf --- /dev/null +++ b/tools/upgrade/500.ca-certificates-tizen-upgrade.sh.in @@ -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 500.ca-certificates-tizen-upgrade.sh.in +# @author Sangwan Kwon (sangwan.kwon@samsung.com) +# @brief fingerprint migration scripts for platform upgrade 2.4 -> 3.0 +# + +mkdir -p @FINGERPRINT_RW_DIR@ +cp @UPGRADE_DATA_DIR@/fingerprint_list_runtime.xml @FINGERPRINT_RW_DIR@ diff --git a/tools/upgrade/CMakeLists.txt b/tools/upgrade/CMakeLists.txt index f7342dd..55c2fb6 100755 --- a/tools/upgrade/CMakeLists.txt +++ b/tools/upgrade/CMakeLists.txt @@ -17,9 +17,9 @@ # CONFIGURE_FILE( - ca-certificates-tizen-upgrade.sh.in ca-certificates-tizen-upgrade.sh + 500.ca-certificates-tizen-upgrade.sh.in 500.ca-certificates-tizen-upgrade.sh @ONLY) INSTALL(FILES - ca-certificates-tizen-upgrade.sh + 500.ca-certificates-tizen-upgrade.sh DESTINATION ${UPGRADE_SCRIPT_DIR}) diff --git a/tools/upgrade/ca-certificates-tizen-upgrade.sh.in b/tools/upgrade/ca-certificates-tizen-upgrade.sh.in deleted file mode 100644 index d178e0e..0000000 --- a/tools/upgrade/ca-certificates-tizen-upgrade.sh.in +++ /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 ca-certificates-tizen-upgrade.sh.in -# @author Sangwan Kwon (sangwan.kwon@samsung.com) -# @brief fingerprint migration scripts for platform upgrade 2.4 -> 3.0 -# - -mkdir -p @FINGERPRINT_RW_DIR@ -cp @UPGRADE_DATA_DIR@/fingerprint_list_runtime.xml @FINGERPRINT_RW_DIR@