From 3f0d3d40e5250178123f774d31b1e1b38e17a133 Mon Sep 17 00:00:00 2001 From: wangshuo Date: Mon, 15 Jul 2024 16:53:00 +0800 Subject: [PATCH] change systemd unit file permission to 644 (cherry picked from commit 4ad7f544ed52865c59b486b04a25404a9aa6d2ef) --- containernetworking-plugins.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/containernetworking-plugins.spec b/containernetworking-plugins.spec index f4e6ae8..46fa892 100644 --- a/containernetworking-plugins.spec +++ b/containernetworking-plugins.spec @@ -16,7 +16,7 @@ Name: %{project}-%{repo} Version: 1.2.0 -Release: 3 +Release: 4 Summary: Libraries for use by writing CNI plugin License: ASL 2.0 URL: https://github.com/containernetworking/plugins @@ -201,8 +201,8 @@ cp %{_builddir}/cni %{buildroot}%{_libexecdir}/cni/ install -d -p %{buildroot}/%{gopath}/src/github.com/containernetworking/plugins/ install -dp %{buildroot}%{_unitdir} -install -p plugins/ipam/dhcp/systemd/cni-dhcp.service %{buildroot}%{_unitdir} -install -p plugins/ipam/dhcp/systemd/cni-dhcp.socket %{buildroot}%{_unitdir} +install -p -m 0644 plugins/ipam/dhcp/systemd/cni-dhcp.service %{buildroot}%{_unitdir} +install -p -m 0644 plugins/ipam/dhcp/systemd/cni-dhcp.socket %{buildroot}%{_unitdir} # source codes for building projects %if 0%{?with_devel} @@ -313,6 +313,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %changelog +* Mon Jun 24 2024 wangshuo - 1.2.0-4 +- change systemd unit file permission to 644 + * Fri Mar 1 2024 luofeng - 1.2.0-3 - Avoid using C ldflags with Go compiler -- Gitee