Skip to content


fix for ubuntu and debian
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Nov 20, 2013
1 parent fb4ddfc commit 82f3f72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/v-change-user-package
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ fi

# Update user shell
shell_path=$(/usr/bin/chsh --list-shells | grep -w "$SHELL" |head -n1)
/usr/bin/chsh -s "$shell_path" "$user" &>/dev/null
shell_conf=$(echo "$pkg_data" | grep 'SHELL' | cut -f 2 -d \')
shell=$(grep -w "$shell_conf" /etc/shells |head -n1)
/usr/bin/chsh -s "$shell" "$user" &>/dev/null

# Run template trigger
if [ -x "$VESTA/data/packages/$" ]; then
Expand Down

0 comments on commit 82f3f72

Please sign in to comment.