Skip to content

Commit

Permalink
Merge pull request #5 from linuxserver/aptalca-patch-2
Browse files Browse the repository at this point in the history
grep shouldn't be this confusing
  • Loading branch information
CHBMB authored Jul 9, 2019
2 parents 43281e3 + ad0813a commit 04a8319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/cont-init.d/30-config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mkdir -p /config/{extensions,data,workspace,.ssh}

if [ -n "${SUDO_PASSWORD}" ]; then
echo "setting up sudo access"
if [ ! $(grep -c 'abc' /etc/sudoers) ]; then
if ! grep -q 'abc' /etc/sudoers; then
echo "adding abc to sudoers"
echo "abc ALL=(ALL:ALL) ALL" >> /etc/sudoers
fi
Expand Down

0 comments on commit 04a8319

Please sign in to comment.