Chain commands properly

This commit is contained in:
Manuel Thalmann 2024-07-13 11:24:04 +02:00
parent ba427608ef
commit fcc965d6c6

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