change shell on package change

This commit is contained in:
Serghey Rodin 2013-02-25 10:35:39 +02:00
commit 852f937acc
2 changed files with 8 additions and 0 deletions

View file

@ -133,6 +133,10 @@ fi
# Changing user package
change_user_package
# Update user shell
shell_path=$(/usr/bin/chsh --list-shells | grep -w "$SHELL" |head -n1)
/usr/bin/chsh -s "$shell_path" "$user" &>/dev/null
#----------------------------------------------------------#
# Vesta #