From 044d919bbabca22b10f17867cda774b71aaa01eb Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 12 Dec 2018 06:49:50 -0500 Subject: [PATCH] archlinux: Clone this repository as the proper user This fixes an issue where root would own all the files in the user's ~/.files directory, preventing the user from doing anything useful. --- .archlinux/install-scripts/004-postinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.archlinux/install-scripts/004-postinstall b/.archlinux/install-scripts/004-postinstall index 8c1fb41..2c16b8b 100755 --- a/.archlinux/install-scripts/004-postinstall +++ b/.archlinux/install-scripts/004-postinstall @@ -38,4 +38,4 @@ arch-chroot /mnt useradd -m -g users -G wheel -s /usr/bin/fish "$USERNAME" arch-chroot /mnt passwd -l root # Clone this repository to the user's $HOME -arch-chroot /mnt git clone https://github.com/GloverDonovan/.files /home/$USERNAME/.files +arch-chroot /mnt su "$USERNAME" -c "git clone https://github.com/GloverDonovan/.files /home/$USERNAME/.files"