mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Added FTP_SHELL controller
This commit is contained in:
parent
a06a90e5bb
commit
a5c47c3576
1 changed files with 8 additions and 4 deletions
|
@ -56,10 +56,14 @@ if [ ! -z "$FTP_USER" ]; then
|
|||
/usr/sbin/userdel -f $FTP_USER > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# Define shell
|
||||
shell='/sbin/nologin'
|
||||
if [ -e "/usr/bin/rssh" ]; then
|
||||
shell='/usr/bin/rssh'
|
||||
# Define ftp user shell
|
||||
if [ -z "$FTP_SHELL" ]; then
|
||||
shell='/sbin/nologin'
|
||||
if [ -e "/usr/bin/rssh" ]; then
|
||||
shell='/usr/bin/rssh'
|
||||
fi
|
||||
else
|
||||
shell=$FTP_SHELL
|
||||
fi
|
||||
|
||||
# Define path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue