Lines 27-34
Link Here
|
27 |
# /usr/share/common-licenses/AGPL-3; if not, see |
27 |
# /usr/share/common-licenses/AGPL-3; if not, see |
28 |
# <https://www.gnu.org/licenses/>. |
28 |
# <https://www.gnu.org/licenses/>. |
29 |
|
29 |
|
|
|
30 |
from os import unlink |
30 |
from subprocess import call |
31 |
from subprocess import call |
31 |
|
32 |
|
|
|
33 |
COND = '/var/lib/univention-bind/ldap' |
34 |
|
32 |
|
35 |
|
33 |
def postinst(ucr, changes): |
36 |
def postinst(ucr, changes): |
|
|
37 |
dns_backend = ucr.get('dns/backend', 'ldap').lower() |
38 |
with open(COND, 'w') as fd: |
39 |
if dns_backend == 'ldap': |
40 |
fd.write('1') |
41 |
|
34 |
call(['systemctl', 'daemon-reload']) |
42 |
call(['systemctl', 'daemon-reload']) |