File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 133133# Changing user package
134134change_user_package
135135
136+ # Update user shell
137+ shell_path=$( /usr/bin/chsh --list-shells | grep -w " $SHELL " | head -n1)
138+ /usr/bin/chsh -s " $shell_path " " $user " & > /dev/null
139+
136140
137141# ----------------------------------------------------------#
138142# Vesta #
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ source $USER_DATA/user.conf
4040shell=$( chsh --list-shells | grep -w " $SHELL " | head -n1)
4141adduser " $user " -s " $shell " -c " $CONTACT " -m -d " $HOMEDIR /$user " & > /dev/null
4242
43+ # Update user shell
44+ shell_path=$( /usr/bin/chsh --list-shells | grep -w " $SHELL " | head -n1)
45+ /usr/bin/chsh -s " $shell_path " " $user " & > /dev/null
46+
4347# Update password
4448shadow=' /etc/shadow'
4549shdw=$( grep ^$user : $shadow )
You can’t perform that action at this time.
0 commit comments