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
|
chmod 0700 /boot/efi
|
||||||
|
|
||||||
# Configure a new user, add him to sudoers
|
# Configure a new user, add him to sudoers
|
||||||
useradd salt -m -G wheel -s /bin/bash -u 1000 -U
|
if ! id salt > /dev/null 2>&1; then
|
||||||
passwd salt
|
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
|
# We've made it this far and now the user has to do just a liiiiiitle bit of configuration
|
||||||
clear
|
clear
|
||||||
|
Loading…
Reference in New Issue
Block a user