aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index a4c157b..d94443e 100755
--- a/build.sh
+++ b/build.sh
@@ -8,10 +8,10 @@ cat services | xargs systemctl enable
ip link
export USER=czar
-grep "$USER" /etc/passwd || useradd -m $USER
+grep "^$USER" /etc/passwd || useradd -m $USER
usermod $USER -aG wheel -s /bin/zsh
timedatectl set-ntp true
-echo | sudo -u czar ssh-keygen
+if [ ! -e /home/$USER/.ssh/id_rsa ]; then sudo -u $USER ssh-keygen; fi
sh regional.sh # Region specific setup
hwclock --systohc