mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fix for ubuntu and debian
This commit is contained in:
parent
fb4ddfce6f
commit
82f3f72679
1 changed files with 3 additions and 2 deletions
|
@ -136,8 +136,9 @@ fi
|
||||||
change_user_package
|
change_user_package
|
||||||
|
|
||||||
# Update user shell
|
# Update user shell
|
||||||
shell_path=$(/usr/bin/chsh --list-shells | grep -w "$SHELL" |head -n1)
|
shell_conf=$(echo "$pkg_data" | grep 'SHELL' | cut -f 2 -d \')
|
||||||
/usr/bin/chsh -s "$shell_path" "$user" &>/dev/null
|
shell=$(grep -w "$shell_conf" /etc/shells |head -n1)
|
||||||
|
/usr/bin/chsh -s "$shell" "$user" &>/dev/null
|
||||||
|
|
||||||
# Run template trigger
|
# Run template trigger
|
||||||
if [ -x "$VESTA/data/packages/$package.sh" ]; then
|
if [ -x "$VESTA/data/packages/$package.sh" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue