clone and checkout dotfiles

This commit is contained in:
Pratham Patel 2023-11-20 17:24:06 +05:30
parent bf13ec5972
commit fead388d05
No known key found for this signature in database

View File

@ -23,6 +23,11 @@ USER_GROUPS='mock,wheel'
echo -e "${USER_PASSWORD}\n${USER_PASSWORD}" | passwd "${USER_NAME}" echo -e "${USER_PASSWORD}\n${USER_PASSWORD}" | passwd "${USER_NAME}"
sed -i "s/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/" /etc/sudoers sed -i "s/# %wheel\tALL=(ALL)\tNOPASSWD: ALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/" /etc/sudoers
# dotfiles
sudo -i -u "${USER_NAME}" git clone --bare https://gitlab.com/thefossguy/dotfiles.git "/home/${USER_NAME}/.dotfiles"
sudo -i -u "${USER_NAME}" git --git-dir="/home/${USER_NAME}/.dotfiles" --work-tree="/home/${USER_NAME}" checkout -f
rm -rf "/home/${USER_NAME}/.config/nvim"
# Lock the root account # Lock the root account
passwd -l root passwd -l root