The cleanup script currently removes all exams, not just the running ones. Are there any options to configure the script to clean only the running exams?
Howdy, the help of these two scripts only present this options:
usage: exam-and-room-cleanup [-h] [-n] [-d] [--skip-exam-shutdown]
[--skip-exam-user-removal]
[--skip-exam-computer-removal]
[--skip-ucr-cleanup] [--skip-exam-cleanup]
[--skip-room-cleanup]
This script stops currently running exams and purges all remaining settings
for exams and computer rooms. WARNING: if a running exam cannot be shutdown
cleanly, data in the home directory may be lost. This script redirects all
output to /var/log/univention/ucs-school-exam-cleanup.log.
optional arguments:
-h, --help show this help message and exit
-n, --dry-run do not change anything
-d, --debug write additional debug output to logfile
--skip-exam-shutdown do not try to shutdown running exams gracefully
--skip-exam-user-removal
do not remove all existing exam users (only on Primary
Directory Node / Backup Directory Node)
--skip-exam-computer-removal
do not remove all existing exam computers (only on
Primary Directory Node / Backup Directory Node)
--skip-ucr-cleanup do not purge exam/room related UCR variables
--skip-exam-cleanup do not purge exam data/metadata files
--skip-room-cleanup do not purge room metadata files