cbd42ca6e9
Updated build.py to reflect this change. Deprecate --template option and make it a noop. Change-Id: I7cd98d1ee684a4c64984a49597159868152683b2 Partially-Implements: blueprint remove-docker-dir
13 lines
349 B
Bash
13 lines
349 B
Bash
#!/bin/bash
|
|
|
|
# Neutron uses rootwrap which requires a tty for sudo.
|
|
# Since the container is running in daemon mode, a tty
|
|
# is not present and requiretty must be commented out.
|
|
if [ ! -f /sudo-modified ]; then
|
|
chmod 0640 /etc/sudoers
|
|
sed -i '/Defaults requiretty/s/^/#/' /etc/sudoers
|
|
chmod 0440 /etc/sudoers
|
|
fi
|
|
|
|
touch /sudo-modified
|