fix for ubuntu and debian

This commit is contained in:
Serghey Rodin 2013-11-21 00:17:33 +02:00
commit 82f3f72679

View file

@ -136,8 +136,9 @@ fi
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
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/$package.sh" ]; then