Chain commands properly

This commit is contained in:
Manuel Thalmann 2024-07-13 11:24:04 +02:00
parent 3c43752597
commit 8f4e2c184d

View file

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