From d72c949b425df0c237cb3667c72bb564ae301a3e Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Fri, 9 Dec 2016 10:20:27 +0900 Subject: [PATCH] Renamed upgrade script file name Change-Id: Id143c354d3ca8240da608aae2bcb07957b856dde Signed-off-by: hyunuktak --- packaging/connman.spec | 5 +++-- scripts/{connman_upgrade.sh => 500.connman_upgrade.sh} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename scripts/{connman_upgrade.sh => 500.connman_upgrade.sh} (100%) diff --git a/packaging/connman.spec b/packaging/connman.spec index 6a24f31..1df7d8f 100755 --- a/packaging/connman.spec +++ b/packaging/connman.spec @@ -34,6 +34,7 @@ Requires(preun): systemd Requires(postun): systemd Requires: net-config +%define upgrade_script_filename 500.connman_upgrade.sh %define upgrade_script_path /usr/share/upgrade/scripts %description @@ -197,7 +198,7 @@ cp vpn/vpn-dbus.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus #OS Upgrade mkdir -p %{buildroot}%{upgrade_script_path} -cp -f scripts/connman_upgrade.sh %{buildroot}%{upgrade_script_path} +cp -f scripts/%{upgrade_script_filename} %{buildroot}%{upgrade_script_path} %post chsmack -a 'System' /%{_localstatedir}/lib/connman @@ -235,7 +236,7 @@ systemctl daemon-reload %attr(644,root,root) %{_libdir}/systemd/system/sockets.target.wants/connman.socket %endif %{_datadir}/license/connman -%{upgrade_script_path}/connman_upgrade.sh +%{upgrade_script_path}/%{upgrade_script_filename} %files test %manifest connman.manifest diff --git a/scripts/connman_upgrade.sh b/scripts/500.connman_upgrade.sh similarity index 100% rename from scripts/connman_upgrade.sh rename to scripts/500.connman_upgrade.sh -- 2.7.4