django-orchestra/orchestra/apps/systemusers/settings.py

20 lines
591 B
Python
Raw Normal View History

from django.conf import settings
from django.utils.translation import ugettext, ugettext_lazy as _
SYSTEMUSERS_SHELLS = getattr(settings, 'SYSTEMUSERS_SHELLS', (
2014-10-02 15:58:27 +00:00
('/dev/null', _("No shell, FTP only")),
('/bin/rssh', _("No shell, SFTP/RSYNC only")),
2014-09-30 10:20:11 +00:00
('/bin/bash', "/bin/bash"),
('/bin/sh', "/bin/sh"),
))
2014-10-02 15:58:27 +00:00
SYSTEMUSERS_DEFAULT_SHELL = getattr(settings, 'SYSTEMUSERS_DEFAULT_SHELL', '/dev/null')
SYSTEMUSERS_HOME = getattr(settings, 'SYSTEMUSERS_HOME', '/home/%(username)s')
SYSTEMUSERS_FTP_LOG_PATH = getattr(settings, 'SYSTEMUSERS_FTP_LOG_PATH', '/var/log/vsftpd.log')