Chain commands properly

This commit is contained in:
Manuel Thalmann 2024-07-13 11:24:04 +02:00
parent 96a45623d6
commit 31ebfa49d5

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