Chain commands properly
This commit is contained in:
parent
ba427608ef
commit
fcc965d6c6
|
@ -28,9 +28,9 @@ begin
|
|||
"$name"
|
||||
end
|
||||
|
||||
chroot "$mountDir" usermod -aG wheel "$name"
|
||||
and chroot "$mountDir" usermod -aG wheel "$name"
|
||||
|
||||
begin
|
||||
and begin
|
||||
echo "$name ALL=(ALL:ALL) NOPASSWD: ALL"
|
||||
end | chroot "$mountDir" tee "/etc/sudoers.d/PortValhalla" > /dev/null
|
||||
|
||||
|
|
Loading…
Reference in a new issue