~andreserl/maas/lp1555308

« back to all changes in this revision

Viewing changes to debian/maas-dns.postinst

  • Committer: MAAS Lander
  • Author(s): Lee Trager
  • Date: 2016-03-07 22:28:26 UTC
  • mfrom: (453.1.2 packaging.trunk)
  • Revision ID: maas_lander-20160307222826-zrzr3rhsz447xqqb
[r=andreserl][bug=][author=ltrager] Fix renaming of maas-provision to maas-rack and maas-region-admin to maas-region

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    # Remove any existing MAAS-related include line from
7
7
    # /etc/bind/named.conf.local, then re-add it.
8
8
    sed -i '/^include\s.*maas/d' /etc/bind/named.conf.local
9
 
    maas-region-admin get_named_conf --edit --config_path /etc/bind/named.conf.local
 
9
    maas-region get_named_conf --edit --config_path /etc/bind/named.conf.local
10
10
 
11
11
    # Add a line in /etc/bind/named.conf.options that includes the
12
12
    # /etc/named/maas/named.conf.options.inside.maas file.
13
 
    maas-region-admin edit_named_options --config-path /etc/bind/named.conf.options
 
13
    maas-region edit_named_options --config-path /etc/bind/named.conf.options
14
14
}
15
15
 
16
16
fix_dns_permissions() {
40
40
if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ -n "$DEBCONF_RECONFIGURE" ]; then
41
41
    # If /etc/bind/maas is empty, set_up_dns.
42
42
    if [ ! "$(ls -A /etc/bind/maas)" ]; then
43
 
        maas-region-admin set_up_dns
 
43
        maas-region set_up_dns
44
44
    fi
45
45
 
46
46
    # Fix permissions.