Added FTP_SHELL controller

This commit is contained in:
Serghey Rodin 2014-07-04 01:17:04 +03:00
commit a5c47c3576

View file

@ -56,10 +56,14 @@ if [ ! -z "$FTP_USER" ]; then
/usr/sbin/userdel -f $FTP_USER > /dev/null 2>&1 /usr/sbin/userdel -f $FTP_USER > /dev/null 2>&1
fi fi
# Define shell # Define ftp user shell
shell='/sbin/nologin' if [ -z "$FTP_SHELL" ]; then
if [ -e "/usr/bin/rssh" ]; then shell='/sbin/nologin'
shell='/usr/bin/rssh' if [ -e "/usr/bin/rssh" ]; then
shell='/usr/bin/rssh'
fi
else
shell=$FTP_SHELL
fi fi
# Define path # Define path