We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97181b1 + 88d09c9 commit 43281e3Copy full SHA for 43281e3
root/etc/cont-init.d/30-config
@@ -4,7 +4,7 @@ mkdir -p /config/{extensions,data,workspace,.ssh}
4
5
if [ -n "${SUDO_PASSWORD}" ]; then
6
echo "setting up sudo access"
7
- if [ ! $(cat /etc/sudoers | grep abc) ]; then
+ if [ ! $(grep -c 'abc' /etc/sudoers) ]; then
8
echo "adding abc to sudoers"
9
echo "abc ALL=(ALL:ALL) ALL" >> /etc/sudoers
10
fi
0 commit comments