diff --git a/.gitignore b/.gitignore index 1494a95..8fade24 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ /.phpunit.cache /node_modules -/public/build /public/hot /public/storage /storage/*.key diff --git a/install/install.sh b/install/install.sh index a0ec1c4..29fda40 100644 --- a/install/install.sh +++ b/install/install.sh @@ -23,13 +23,13 @@ fi apt remove needrestart -y useradd -p $(openssl passwd -1 ${V_PASSWORD}) ${V_USERNAME} -usermod -aG "${V_USERNAME}" +usermod -aG ${V_USERNAME} "${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" <<