Add an option to force logout if the home on server fails to mount

This commit is contained in:
Raphael Dannecker 2025-04-02 13:55:10 +02:00
parent e5bf6054fe
commit 513d29d628
4 changed files with 550 additions and 508 deletions

View file

@ -34,6 +34,6 @@
mode: '0755'
content: |
[[ "${UID}" -gt 10000 ]] && ! findmnt "/lmn/media/${USER}/home" > /dev/null && exit 0
{% if 'teacherlaptop' not in group_names %}
{% if localhome_logout_missing_serverhome %}
[[ "${UID}" -gt 10000 ]] && ! findmnt /srv/samba/schools/default-school > /dev/null && exit 0
{% endif %}