We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97181b1 commit 88d09c9Copy full SHA for 88d09c9
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