Only add salt if he doesn't exist

This commit is contained in:
Salt 2020-12-04 01:45:31 -06:00
parent 26baf4a1fa
commit 99fbab1ee8

View File

@ -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
if ! id salt > /dev/null 2>&1; then
useradd salt -m -G wheel -s /bin/bash -u 1000 -U useradd salt -m -G wheel -s /bin/bash -u 1000 -U
passwd salt 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