Mount default-school by pam_mount and create symlinks to home and share

This commit is contained in:
Raphael Dannecker 2023-08-14 08:26:06 +02:00
parent fc410dcb2d
commit 68239b56cb
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,4 @@
if [[ "${UID}" -gt 60000 ]]; then
[[ -L "/media/${USER}/share" ]] || ln -s .default-school/share "/media/${USER}/share"
[[ -L "/media/${USER}/home" ]] || ln -s ".default-school/${HOME##/srv/samba/schools/default-school/}" "/media/${USER}/home"
fi