create cache dir with correct user

This commit is contained in:
Luke Smith 2020-05-26 14:15:40 -04:00
parent f8dd8ca886
commit eb89e0b253
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -156,7 +156,6 @@ systembeepoff() { dialog --infobox "Getting rid of that retarded error beep soun
finalize(){ \ finalize(){ \
dialog --infobox "Preparing welcome message..." 4 50 dialog --infobox "Preparing welcome message..." 4 50
echo "exec_always --no-startup-id notify-send -i ~/.local/share/larbs/larbs.png 'Welcome to LARBS:' 'Press Super+F1 for the manual.' -t 10000" >> "/home/$name/.config/i3/config" echo "exec_always --no-startup-id notify-send -i ~/.local/share/larbs/larbs.png 'Welcome to LARBS:' 'Press Super+F1 for the manual.' -t 10000" >> "/home/$name/.config/i3/config"
mkdir -p /home/$name/.cache/zsh/ # allows zsh to write a histfile. If this is not put in, zsh will not make the directory and there won't be a file.
dialog --title "All done!" --msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\\n\\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment (it will start automatically in tty1).\\n\\n.t Luke" 12 80 dialog --title "All done!" --msgbox "Congrats! Provided there were no hidden errors, the script completed successfully and all the programs and configuration files should be in place.\\n\\nTo run the new graphical environment, log out and log back in as your new user, then run the command \"startx\" to start the graphical environment (it will start automatically in tty1).\\n\\n.t Luke" 12 80
} }
@ -234,6 +233,7 @@ systembeepoff
# Make zsh the default shell for the user. # Make zsh the default shell for the user.
chsh -s /bin/zsh $name >/dev/null 2>&1 chsh -s /bin/zsh $name >/dev/null 2>&1
sudo -u "$name" mkdir -p "/home/$name/.cache/zsh/"
# dbus UUID must be generated for Artix runit. # dbus UUID must be generated for Artix runit.
dbus-uuidgen > /var/lib/dbus/machine-id dbus-uuidgen > /var/lib/dbus/machine-id