Skip to content

Commit

Permalink
use chsh over hard to read sed to set shell
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdoster authored May 26, 2020
1 parent 8073ba9 commit 4115ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion larbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4115ca5

Please sign in to comment.