Exam users uid always changes, therefore their home directory must be deleted

This commit is contained in:
Raphael Dannecker 2024-12-04 12:08:28 +01:00
parent 3ff31771f7
commit 99d7bd64db
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[Unit]
Description=Remove -exam homes older than 12h
[Service]
Type=simple
ExecStart=find /home/ -maxdepth 1 -mindepth 1 -name '*-exam' -type d -cmin +720 -exec rm -rf {} \;