diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 53e2713..0bb6243 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -4,7 +4,7 @@ mkdir -p /config/{extensions,data,workspace,.ssh} if [ -n "${SUDO_PASSWORD}" ]; then echo "setting up sudo access" - if [ ! $(cat /etc/sudoers | grep abc) ]; then + if [ ! $(grep -c 'abc' /etc/sudoers) ]; then echo "adding abc to sudoers" echo "abc ALL=(ALL:ALL) ALL" >> /etc/sudoers fi