Compare commits

..

2 Commits

Author SHA1 Message Date
chbmb
43281e335f Merge pull request #4 from linuxserver/aptalca-patch-1
fix if grep
2019-07-09 23:40:25 +01:00
aptalca
88d09c973d fix if grep 2019-07-09 18:32:57 -04:00

View File

@@ -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