From eabd95c8a1c6dc4d12450ac120329dc93f36544c Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Fri, 5 Oct 2018 15:32:15 +0200 Subject: [PATCH] correct directory modes --- build/rpms/kubeadm.spec | 6 +++--- build/rpms/kubelet.spec | 4 ++-- build/rpms/kubernetes-cni.spec | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/rpms/kubeadm.spec b/build/rpms/kubeadm.spec index 098ce1de54f..19a33442fcd 100644 --- a/build/rpms/kubeadm.spec +++ b/build/rpms/kubeadm.spec @@ -15,9 +15,9 @@ Command-line utility for deploying a Kubernetes cluster. %install install -m 755 -d %{buildroot}%{_bindir} -install -m 644 -d %{buildroot}%{_sysconfdir}/systemd/system/ -install -m 644 -d %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ -install -m 644 -d %{buildroot}%{_sysconfdir}/sysconfig/ +install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/ +install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ +install -m 755 -d %{buildroot}%{_sysconfdir}/sysconfig/ install -p -m 755 -t %{buildroot}%{_bindir} {kubeadm} install -p -m 644 -t %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ {10-kubeadm.conf} install -p -m 644 -T {kubelet.env} %{buildroot}%{_sysconfdir}/sysconfig/kubelet diff --git a/build/rpms/kubelet.spec b/build/rpms/kubelet.spec index 44c03261265..40abb09131f 100644 --- a/build/rpms/kubelet.spec +++ b/build/rpms/kubelet.spec @@ -20,8 +20,8 @@ The node agent of Kubernetes, the container cluster manager. %install install -m 755 -d %{buildroot}%{_bindir} -install -m 644 -d %{buildroot}%{_sysconfdir}/systemd/system/ -install -m 644 -d %{buildroot}%{_sysconfdir}/kubernetes/manifests/ +install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/ +install -m 755 -d %{buildroot}%{_sysconfdir}/kubernetes/manifests/ install -p -m 755 -t %{buildroot}%{_bindir} {kubelet} install -p -m 644 -t %{buildroot}%{_sysconfdir}/systemd/system/ {kubelet.service} diff --git a/build/rpms/kubernetes-cni.spec b/build/rpms/kubernetes-cni.spec index 3f4f62e17be..4b4751d11cf 100644 --- a/build/rpms/kubernetes-cni.spec +++ b/build/rpms/kubernetes-cni.spec @@ -15,7 +15,7 @@ tar -C ./bin -xz -f {cni-plugins-amd64-v0.6.0.tgz} %install -install -m 644 -d %{buildroot}%{_sysconfdir}/cni/net.d/ +install -m 755 -d %{buildroot}%{_sysconfdir}/cni/net.d/ install -m 755 -d %{buildroot}/opt/cni mv bin/ %{buildroot}/opt/cni/