mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
fix for aditional ftp accounts
This commit is contained in:
parent
55a1bdefcb
commit
039a989fb2
5 changed files with 11 additions and 2 deletions
|
@ -51,7 +51,7 @@ is_password_valid
|
|||
get_domain_values 'web'
|
||||
|
||||
# Defining ftp user shell
|
||||
shell='/sbin/nologin'
|
||||
shell=$(which nologin)
|
||||
if [ ! -z "$FTP_SHELL" ]; then
|
||||
shell=$FTP_SHELL
|
||||
fi
|
||||
|
|
|
@ -268,7 +268,7 @@ rebuild_web_domain_conf() {
|
|||
|
||||
# Adding ftp users
|
||||
if [ -z "$FTP_SHELL" ]; then
|
||||
shell='/sbin/nologin'
|
||||
shell=$(which nologin)
|
||||
if [ -e "/usr/bin/rssh" ]; then
|
||||
shell='/usr/bin/rssh'
|
||||
fi
|
||||
|
|
|
@ -886,6 +886,9 @@ if [ "$vsftpd" = 'yes' ]; then
|
|||
update-rc.d vsftpd defaults
|
||||
service vsftpd start
|
||||
check_result $? "vsftpd start failed"
|
||||
|
||||
# To be deleted after release 0.9.8-18
|
||||
echo "/sbin/nologin" >> /etc/shells
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -937,6 +937,9 @@ if [ "$vsftpd" = 'yes' ]; then
|
|||
chkconfig vsftpd on
|
||||
service vsftpd start
|
||||
check_result $? "vsftpd start failed"
|
||||
|
||||
# To be deleted after release 0.9.8-18
|
||||
echo "/sbin/nologin" >> /etc/shells
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
@ -901,6 +901,9 @@ if [ "$vsftpd" = 'yes' ]; then
|
|||
update-rc.d vsftpd defaults
|
||||
service vsftpd start
|
||||
check_result $? "vsftpd start failed"
|
||||
|
||||
# To be deleted after release 0.9.8-18
|
||||
echo "/sbin/nologin" >> /etc/shells
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue