
Use default 'DISTRO_NAME' variable for check which distro is use for current image build Change-Id: Ieba71733fbcd554a1c7416efb0c4b740939d06a8 Closes-bug: #1436807
12 lines
209 B
Bash
Executable File
12 lines
209 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
|
|
if [ "$DISTRO_NAME" = "centos" -o "$DISTRO_NAME" = "rhel" ]; then
|
|
sed '/^Defaults requiretty*/ s/^/#/' -i /etc/sudoers
|
|
fi
|
|
|