Univention Bugzilla – Bug 36418
system-setup doesn't run cleanup scripts
Last modified: 2014-11-26 07:14:38 CET
The UCS setup wizard module is still available on a joined DC backup.
Well, on DC backups no cleanup scripts are ever executed. === Cleanup (2014-11-04 11:03:28) === === Running cleanup-pre scripts (2014-11-04 11:03:28) === === done (2014-11-04 11:03:28) === Restarting Univention Management Console Server. done. Restarting Univention Management Console Web Server. done. Restarting web server: apache2 ... waiting . === Running cleanup-post scripts (2014-11-04 11:03:32) === === done (2014-11-04 11:03:32) === === DONE (2014-11-04 11:03:32) ===
root@backup4:/var/log# ls /usr/lib/univention-system-setup/cleanup-post.d root@backup4:/var/log# ls /usr/lib/univention-system-setup/cleanup-pre.d/ root@backup4:/var/log# empty ...
On every DC role.
debian/univention-system-setup-boot.install:usr/lib/univention-system-setup/cleanup-post.d debian/univention-system-setup.dirs:usr/lib/univention-system-setup/cleanup-post.d debian/univention-system-setup.dirs:usr/lib/univention-system-setup/cleanup-pre.d
Probably this is the case: 1) system setup runs + finishes 2) apt-get autoremove removes univention-system-setup-boot 3) session timeout / cleanup scripts will run → don't exists anymore Would it be ok, if univention-system-setup instead of univention-system-setup-boot ships the cleanup-post.d and cleanup-pre.d scripts?
While joining into the domain the Package univention-system-setup-bootm is already removed. # dpkg -l univention-system-setup-boot rc univention-system-setup-boot → cleanup-post.d was removed, too. I moved all the cleanup scripts into univention-system-setup package. They will only be executed in appliance/installer/wizard mode. In theory this is a duplicate of Bug #35727 (which is already VERIFIED, so setting this to RESOLVED).
Created attachment 6317 [details] setup.log Backup
Created attachment 6318 [details] setup.log Member
As you can see inside the logs the cleanup scripts have been called, so the wizard module is disabled. OK - backup OK - member
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".