|
464 |
fi |
464 |
fi |
465 |
} |
465 |
} |
466 |
|
466 |
|
|
|
467 |
# Move Samba4 FSMO roles to this host |
468 |
# https://forge.univention.org/bugzilla/show_bug.cgi?id=26986 |
469 |
if [ -x /usr/bin/samba-tool ]; then |
470 |
if samba-tool fsmo show | grep -qi "CN=${old_ldap_master_hostname},CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration"; then |
471 |
samba-tool fsmo seize --role=all --force |
472 |
fi |
473 |
fi |
474 |
|
467 |
if [ -e "$samdb" ]; then |
475 |
if [ -e "$samdb" ]; then |
468 |
samdb_remove_dc_account "$old_ldap_master_hostname" |
476 |
samdb_remove_dc_account "$old_ldap_master_hostname" |
469 |
fi |
477 |
fi |
|
521 |
printf "\nReplacing package univention-server-backup with univention-server-master.\n" |
529 |
printf "\nReplacing package univention-server-backup with univention-server-master.\n" |
522 |
apt-get -y install univention-server-master univention-server-backup- |
530 |
apt-get -y install univention-server-master univention-server-backup- |
523 |
|
531 |
|
524 |
# Move Samba4 FSMO roles to this host |
|
|
525 |
# https://forge.univention.org/bugzilla/show_bug.cgi?id=26986 |
526 |
if [ -x /usr/bin/samba-tool ]; then |
527 |
if samba-tool fsmo show | grep -qi "CN=${old_ldap_master_hostname},CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration"; then |
528 |
samba-tool fsmo seize --role=all --force |
529 |
fi |
530 |
fi |
531 |
|
532 |
udm_remove_dns_service_account "$old_ldap_master_hostname" |
532 |
udm_remove_dns_service_account "$old_ldap_master_hostname" |
533 |
|
533 |
|
534 |
# Any bind9 that might be running shall be restarted. |
534 |
# Any bind9 that might be running shall be restarted. |