summaryrefslogtreecommitdiff
path: root/packages/redhat
diff options
context:
space:
mode:
authorVlastimil Holer <vlastimil.holer@gmail.com>2014-01-31 16:05:28 +0100
committerVlastimil Holer <vlastimil.holer@gmail.com>2014-01-31 16:05:28 +0100
commit2f14aa401ca1dd1d202e4b1abb4292b0d30c2c36 (patch)
treee98e06ce303d4cd65b2f6c9b7609a9887fcca244 /packages/redhat
parent34fbd44dce07d1d1d92e679fd038610a28470896 (diff)
downloadvyos-cloud-init-2f14aa401ca1dd1d202e4b1abb4292b0d30c2c36.tar.gz
vyos-cloud-init-2f14aa401ca1dd1d202e4b1abb4292b0d30c2c36.zip
Fix sudo cfg. file mode. Require sudo >= 1.7.2p2-3 with sudoers.d support.
Diffstat (limited to 'packages/redhat')
-rw-r--r--packages/redhat/cloud-init.spec.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/redhat/cloud-init.spec.in b/packages/redhat/cloud-init.spec.in
index fd0da97c..a32e19d8 100644
--- a/packages/redhat/cloud-init.spec.in
+++ b/packages/redhat/cloud-init.spec.in
@@ -34,7 +34,7 @@ Requires: e2fsprogs
Requires: net-tools
Requires: procps
Requires: shadow-utils
-Requires: sudo
+Requires: sudo >= 1.7.2p2-3
# Install pypi 'dynamic' requirements
#for $r in $requires
@@ -91,9 +91,8 @@ rm -rf \$RPM_BUILD_ROOT
mkdir -p \$RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d
cp -p tools/21-cloudinit.conf \
\$RPM_BUILD_ROOT/%{_sysconfdir}/rsyslog.d/21-cloudinit.conf
-
-mkdir -p \$RPM_BUILD_ROOT/%{_sysconfdir}/sudoers.d
-cp -p tools/sudo \$RPM_BUILD_ROOT/%{_sysconfdir}/sudoers.d/cloud-init
+install -Dpm 440 tools/sudo \
+ \$RPM_BUILD_ROOT/%{_sysconfdir}/sudoers.d/cloud-init
%clean
rm -rf \$RPM_BUILD_ROOT