Merge pull request #235 from vladdoster/patch-1

use chsh over hard to read sed to set shell
This commit is contained in:
Luke Smith 2020-05-26 14:10:46 -04:00 committed by GitHub
commit 7d1b847662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ git update-index --assume-unchanged "/home/$name/LICENSE"
systembeepoff
# Make zsh the default shell for the user.
sed -i "s/^$name:\(.*\):\/bin\/\S*/$name:\1:\/bin\/zsh/" /etc/passwd
chsh -s /bin/zsh $name >/dev/null 2>&1
# dbus UUID must be generated for Artix runit.
dbus-uuidgen > /var/lib/dbus/machine-id