Auto Reload Bind if record changed (#1472)

This commit is contained in:
blablup
2019-09-09 07:14:02 +02:00
committed by Franco Fichtner
parent 6b8d0f9bc1
commit b051c601e3
2 changed files with 11 additions and 2 deletions
@@ -86,7 +86,7 @@ POSSIBILITY OF SUCH DAMAGE.
<div class="alert alert-warning" role="alert" style="min-height:65px;">
<div style="margin-top: 8px;">{{ lang._('Zone management is still in experimental state, use with caution.') }}</div>
</div>
<table id="grid-domains" class="table table-responsive" data-editDialog="dialogEditBindDomain">
<table id="grid-domains" class="table table-responsive" data-editAlert="ChangeMessage" data-editDialog="dialogEditBindDomain">
<thead>
<tr>
<th data-column-id="enabled" data-type="string" data-formatter="rowtoggle">{{ lang._('Enabled') }}</th>
@@ -117,7 +117,7 @@ POSSIBILITY OF SUCH DAMAGE.
<h2>{{ lang._('Records') }}</h2>
</div>
<div id="record-area">
<table id="grid-records" class="table table-responsive" data-editDialog="dialogEditBindRecord">
<table id="grid-records" class="table table-responsive" data-editAlert="ChangeMessage" data-editDialog="dialogEditBindRecord">
<thead>
<tr>
<th data-column-id="enabled" data-type="string" data-formatter="rowtoggle">{{ lang._('Enabled') }}</th>
@@ -142,6 +142,9 @@ POSSIBILITY OF SUCH DAMAGE.
</table>
</div>
<div class="col-md-12">
<div id="ChangeMessage" class="alert alert-info" style="display: none" role="alert">
{{ lang._('After changing settings, please remember to apply them with the button below') }}
</div>
<hr />
<button class="btn btn-primary" id="saveAct_domain" type="button"><b>{{ lang._('Save') }}</b> <i id="saveAct_domain_progress"></i></button>
<br /><br />
@@ -22,6 +22,12 @@ parameters:
type:script_output
message:request BIND status
[reload]
command:/usr/local/etc/rc.d/named reload
parameters:
type:script
message:request BIND reload
[dnsbl]
command:/usr/local/opnsense/scripts/OPNsense/Bind/dnsbl.sh
parameters: %s