Fixed SRV subdomains
This commit is contained in:
parent
50072b756f
commit
781a873f61
2
TODO.md
2
TODO.md
|
@ -147,7 +147,7 @@ Remember that, as always with QuerySets, any subsequent chained methods which im
|
|||
textwrap.dedent( \\)
|
||||
|
||||
* accounts
|
||||
* short name / long name
|
||||
* short name / long name, account name really needed? address? only minimal info..
|
||||
* contact inlines
|
||||
* autocreate stuff (email/<account>.orchestra.lan/plans)
|
||||
* account username should be domain freiendly withot lines
|
||||
|
|
|
@ -98,11 +98,11 @@ class Domain(models.Model):
|
|||
settings.DOMAINS_DEFAULT_MIN_CACHING_TIME
|
||||
]
|
||||
records.insert(0, AttrDict(type=Record.SOA, value=' '.join(soa)))
|
||||
no_cname = Record.CNAME not in types
|
||||
if Record.MX not in types and no_cname:
|
||||
is_a = not types or Record.A in types or Record.AAAA in types
|
||||
if Record.MX not in types and is_a:
|
||||
for mx in settings.DOMAINS_DEFAULT_MX:
|
||||
records.append(AttrDict(type=Record.MX, value=mx))
|
||||
if (Record.A not in types and Record.AAAA not in types) and no_cname:
|
||||
if (Record.A not in types and Record.AAAA not in types) and is_a:
|
||||
records.append(AttrDict(type=Record.A, value=settings.DOMAINS_DEFAULT_A))
|
||||
result = ''
|
||||
for record in records:
|
||||
|
|
|
@ -13,7 +13,7 @@ class Command(BaseCommand):
|
|||
self.option_list = BaseCommand.option_list + (
|
||||
make_option('--username', dest='username', default='orchestra',
|
||||
help='Specifies the system user that would run celeryd.'),
|
||||
make_option('--processes', dest='processes', default=5,
|
||||
make_option('--processes', dest='processes', default=2,
|
||||
help='Number of celeryd processes.'),
|
||||
make_option('--noinput', action='store_false', dest='interactive', default=True,
|
||||
help='Tells Django to NOT prompt the user for input of any kind. '
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
<!-- Container -->
|
||||
{% block container-stetic %}<div id="container">{% endblock %}
|
||||
|
||||
{% if not is_popup %}
|
||||
<!-- Header -->
|
||||
{% block header-stetic %}<div id="header"><div id="header-wrapper">{% endblock %}
|
||||
|
@ -44,18 +43,18 @@
|
|||
{% block nav-global %}{% endblock %}
|
||||
</div></div>
|
||||
<!-- END Header -->
|
||||
<div class="outer-breadcrumbs">{% block breadcrumbs %}<div class="breadcrumbs"><a href="{{ root_path }}">{% trans 'Home' %}</a>{% if title %} › {{ title }}{% endif %}</div>{% endblock %}</div>
|
||||
<div class="outer-breadcrumbs">{% block breadcrumbs %}<div class="breadcrumbs">{% trans 'Home' %}</div>{% endblock %}</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% block messages %}
|
||||
{% if messages %}
|
||||
<ul class="messagelist" >{% for message in messages %}
|
||||
<div style="background: {% if message.tags == 'warning' %}#ffc{% else %}#dfd{% endif %} 5px .3em no-repeat;border-bottom: 1px solid #ddd;">
|
||||
<div style="background: {% if message.tags == 'warning' %}#ffc{% elif message.tags == 'error' %}#ffefef{% else %}#dfd{% endif %} 5px .3em no-repeat;border-bottom: 1px solid #ddd;">
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %} style="max-width:1130px;margin:auto;margin-bottom:-1px;">{{ message }}</li></div>
|
||||
{% endfor %}</ul>
|
||||
{% endif %}
|
||||
{% endblock messages %}
|
||||
|
||||
|
||||
<!-- Content -->
|
||||
<div id="content" class="{% block coltype %}colM{% endblock %}" style="max-width:1150px; margin:20px auto;">
|
||||
{% block pretitle %}{% endblock %}
|
||||
|
@ -68,7 +67,7 @@
|
|||
<br class="clear" />
|
||||
</div>
|
||||
<!-- END Content -->
|
||||
|
||||
|
||||
{% block footer %}<div id="footer"></div>{% endblock %}
|
||||
</div>
|
||||
<!-- END Container -->
|
||||
|
|
|
@ -19,6 +19,7 @@ echo "account = Account.objects.get(pk=1)"
|
|||
ERRORS=""
|
||||
while read name; do
|
||||
[[ -f $name ]] && {
|
||||
[[ ! $(echo "$name" | grep '/' > /dev/null ) ]] && name="./${name}"
|
||||
ZONE_PATH=${name%/*}
|
||||
name=${name##*/}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue