Remove obsolete setup-user
This commit is contained in:
parent
92b0c4c82b
commit
15622e4297
1 changed files with 0 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue