File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -886,9 +886,9 @@ echo "ClientAliveCountMax 3" >> /etc/ssh/sshd_config || log "Failed to tune sshd
886
886
if [ " ${ALLOW_SUDO} " == true ]; then
887
887
# Patch sudoers file since noexec is set by default, which prevents sudo
888
888
sed -i ' s/^Defaults noexec/#Defaults noexec/g' /etc/sudoers 2>> " ${LOG_FILE} " || log " Failed to sed /etc/sudoers" " ERROR"
889
- if " ${FLAVOR} " = " rhel" ; then
889
+ if [ " ${FLAVOR} " = " rhel" ] ; then
890
890
dnf install -y sudo 2>> " ${LOG_FILE} " || log " Failed to install sudo" " ERROR"
891
- elif " ${FLAVOR} " = " debian" ; then
891
+ elif [ " ${FLAVOR} " = " debian" ] ; then
892
892
apt install -y sudo 2>> " ${LOG_FILE} " || log " Failed to install sudo" " ERROR"
893
893
chmod 4755 /usr/bin/sudo 2>> " ${LOG_FILE} " || log " Failed to chmod /usr/bin/sudo" " ERROR"
894
894
fi
You can’t perform that action at this time.
0 commit comments