Skip to content

Commit 43281e3

Browse files
authored
Merge pull request #4 from linuxserver/aptalca-patch-1
fix if grep
2 parents 97181b1 + 88d09c9 commit 43281e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/etc/cont-init.d/30-config

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mkdir -p /config/{extensions,data,workspace,.ssh}
44

55
if [ -n "${SUDO_PASSWORD}" ]; then
66
echo "setting up sudo access"
7-
if [ ! $(cat /etc/sudoers | grep abc) ]; then
7+
if [ ! $(grep -c 'abc' /etc/sudoers) ]; then
88
echo "adding abc to sudoers"
99
echo "abc ALL=(ALL:ALL) ALL" >> /etc/sudoers
1010
fi

0 commit comments

Comments
 (0)