|
Lines 30-40
Link Here
|
| 30 |
# License with the Debian GNU/Linux or Univention distribution in file |
30 |
# License with the Debian GNU/Linux or Univention distribution in file |
| 31 |
# /usr/share/common-licenses/AGPL-3; if not, see |
31 |
# /usr/share/common-licenses/AGPL-3; if not, see |
| 32 |
# <http://www.gnu.org/licenses/>. |
32 |
# <http://www.gnu.org/licenses/>. |
| 33 |
import sys |
|
|
| 34 |
import os.path |
33 |
import os.path |
| 35 |
import shutil |
34 |
import shutil |
| 36 |
import glob |
35 |
import glob |
| 37 |
import apt_pkg |
|
|
| 38 |
|
36 |
|
| 39 |
from univention.management.console.modules.setup.setup_script import AptScript, main, _ |
37 |
from univention.management.console.modules.setup.setup_script import AptScript, main, _ |
| 40 |
|
38 |
|
|
Lines 90-103
Link Here
|
| 90 |
self.finish_task() |
88 |
self.finish_task() |
| 91 |
|
89 |
|
| 92 |
if current_server_role_package: |
90 |
if current_server_role_package: |
| 93 |
self.commit(install=[wanted_server_role_package], remove=[current_server_role_package]) |
91 |
self.uninstall(current_server_role_package) |
| 94 |
else: |
92 |
self.install(wanted_server_role_package) |
| 95 |
self.commit(install=[wanted_server_role_package]) |
|
|
| 96 |
|
93 |
|
| 97 |
self.finish_task() |
94 |
self.finish_task() |
| 98 |
|
95 |
|
| 99 |
# mark these packages as manually installed |
96 |
# mark these packages as manually installed |
| 100 |
self.install('univention-pam', 'univention-management-console') |
97 |
self.mark_auto(False, 'univention-pam', 'univention-management-console') |
|
|
98 |
self.reopen_cache() |
| 101 |
|
99 |
|
| 102 |
# apt-get autoremove |
100 |
# apt-get autoremove |
| 103 |
self.autoremove() |
101 |
self.autoremove() |
|
Lines 106-112
Link Here
|
| 106 |
# reinstall listener on memberserver because the ldap-server package |
104 |
# reinstall listener on memberserver because the ldap-server package |
| 107 |
# will remove too much: |
105 |
# will remove too much: |
| 108 |
# https://forge.univention.org/bugzilla/show_bug.cgi?id=26269 |
106 |
# https://forge.univention.org/bugzilla/show_bug.cgi?id=26269 |
| 109 |
apt_pkg.config['APT::Get::ReInstall'] = 'true' |
|
|
| 110 |
self.install('univention-directory-listener') |
107 |
self.install('univention-directory-listener') |
| 111 |
|
108 |
|
| 112 |
self.finish_task() |
109 |
self.finish_task() |