clone and checkout dotfiles
This commit is contained in:
parent
bf13ec5972
commit
fead388d05
@ -23,6 +23,11 @@ USER_GROUPS='mock,wheel'
|
||||
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
|
||||
|
||||
# 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
|
||||
passwd -l root
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user