diff options
| author | Steven Dake <stdake@cisco.com> | 2015-05-28 10:10:00 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-06-08 11:01:50 -0700 |
| commit | 1d299dfe9abb26852da238597a903a1a4e44f290 (patch) | |
| tree | 1305ae0a99428cba765f942ce4b6e77658672954 /docker | |
| parent | 7cdd36d3457bc99ab914f864fb12199ab896873d (diff) | |
| download | kolla-1d299dfe9abb26852da238597a903a1a4e44f290.tar.gz kolla-1d299dfe9abb26852da238597a903a1a4e44f290.zip | |
Make config-sudoers.sh bashate compliant
Change-Id: Ie3fdcf5d3e1cda3b85a6532e462ad78e98e1a378
Partially-Implements: blueprint bashate-gate
Diffstat (limited to 'docker')
| -rwxr-xr-x | docker/centos/binary/neutron/neutron-agents/config-scripts/config-sudoers.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/centos/binary/neutron/neutron-agents/config-scripts/config-sudoers.sh b/docker/centos/binary/neutron/neutron-agents/config-scripts/config-sudoers.sh index 198420026..0e02226db 100755 --- a/docker/centos/binary/neutron/neutron-agents/config-scripts/config-sudoers.sh +++ b/docker/centos/binary/neutron/neutron-agents/config-scripts/config-sudoers.sh @@ -4,9 +4,9 @@ # Since the container is running in daemon mode, a tty # is not present and requiretty must be commented out. if [ ! -f /var/run/sudo-modified ]; then - chmod 0640 /etc/sudoers - sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers - chmod 0440 /etc/sudoers + chmod 0640 /etc/sudoers + sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers + chmod 0440 /etc/sudoers fi touch /var/run/sudo-modified |
