From 62f44c6d09317b2cadfbbb9aa356931050bd42ea Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Sun, 9 Jul 2023 23:25:44 +0200 Subject: [PATCH] fixes --- install/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install/install.sh b/install/install.sh index 5138fea..44a3de1 100644 --- a/install/install.sh +++ b/install/install.sh @@ -24,12 +24,13 @@ apt remove needrestart -y useradd -p $(openssl passwd -1 ${V_PASSWORD}) ${V_USERNAME} usermod -aG ${V_USERNAME} -"${V_USERNAME} ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers +echo "${V_USERNAME} ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers mkdir /home/${V_USERNAME} mkdir /home/${V_USERNAME}/.ssh chown -R ${V_USERNAME}:${V_USERNAME} /home/${V_USERNAME} -chsh -s /bin/bash ${V_USERNAME} -su - ${V_USERNAME} -c "ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa" <<