mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-23 04:25:40 +01:00
commit
43281e335f
@ -4,7 +4,7 @@ mkdir -p /config/{extensions,data,workspace,.ssh}
|
|||||||
|
|
||||||
if [ -n "${SUDO_PASSWORD}" ]; then
|
if [ -n "${SUDO_PASSWORD}" ]; then
|
||||||
echo "setting up sudo access"
|
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 "adding abc to sudoers"
|
||||||
echo "abc ALL=(ALL:ALL) ALL" >> /etc/sudoers
|
echo "abc ALL=(ALL:ALL) ALL" >> /etc/sudoers
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user