Remove obsolete setup-user

This commit is contained in:
Manuel Thalmann 2024-07-13 15:11:44 +02:00
parent cd819b5996
commit b664ecd82c

View file

@ -20,26 +20,6 @@ begin
bash "$script"
and source "$dir/../../copy-repo.fish" "$mountDir$PROJECT_CLONE_ROOT"
and runHook setupOS || true
and runHook createUser || \
begin
chroot "$mountDir" \
useradd \
--comment "PortValhalla setup user" \
--system \
--no-user-group \
--groups wheel \
--create-home \
--uid (getConfig valhalla.setupUser.id --json) \
"$name"
end
and chroot "$mountDir" usermod -aG wheel "$name"
and begin
echo "$name ALL=(ALL:ALL) NOPASSWD: ALL"
end | chroot "$mountDir" tee "/etc/sudoers.d/PortValhalla" > /dev/null
and runHook autologin || true
and begin