From 4115ca5b193b64168da48aada913cd2f404eff05 Mon Sep 17 00:00:00 2001 From: Vlad Doster Date: Tue, 26 May 2020 06:39:13 -0500 Subject: use chsh over hard to read sed to set shell --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index 8887a7b..d277fe9 100644 --- a/larbs.sh +++ b/larbs.sh @@ -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 -- cgit v1.2.3