Only add salt if he doesn't exist
This commit is contained in:
parent
26baf4a1fa
commit
99fbab1ee8
@ -243,8 +243,10 @@ build-gentoo-chroot() {
|
||||
chmod 0700 /boot/efi
|
||||
|
||||
# Configure a new user, add him to sudoers
|
||||
if ! id salt > /dev/null 2>&1; then
|
||||
useradd salt -m -G wheel -s /bin/bash -u 1000 -U
|
||||
passwd salt
|
||||
fi
|
||||
|
||||
# We've made it this far and now the user has to do just a liiiiiitle bit of configuration
|
||||
clear
|
||||
|
Loading…
Reference in New Issue
Block a user