Skip to content

Commit 0126ecc

Browse files
committed
User shell didn't change after package change
1 parent 0e40dcb commit 0126ecc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/v-change-user-package

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ change_user_package
164164

165165
# Update user shell
166166
shell_conf=$(echo "$pkg_data" | grep 'SHELL' | cut -f 2 -d \')
167-
shell=$(grep -w "$shell_conf" /etc/shells |head -n1)
168-
/usr/bin/chsh -s "$shell" "$user" &>/dev/null
167+
$BIN/v-change-user-shell $user $shell_conf
169168

170169
# Run template trigger
171170
if [ -x "$HESTIA/data/packages/$package.sh" ]; then

0 commit comments

Comments
 (0)