use chsh over hard to read sed to set shell
This commit is contained in:
parent
8073ba91cf
commit
4115ca5b19
2
larbs.sh
2
larbs.sh
@ -232,7 +232,7 @@ git update-index --assume-unchanged "/home/$name/LICENSE"
|
|||||||
systembeepoff
|
systembeepoff
|
||||||
|
|
||||||
# Make zsh the default shell for the user.
|
# 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 UUID must be generated for Artix runit.
|
||||||
dbus-uuidgen > /var/lib/dbus/machine-id
|
dbus-uuidgen > /var/lib/dbus/machine-id
|
||||||
|
Loading…
Reference in New Issue
Block a user