4 lines
225 B
Bash
4 lines
225 B
Bash
|
#!/bin/bash
|
||
|
echo "cleanup for ${USER}:${HOME} $(date)" >> /opt/scripts/lightdm.log
|
||
|
log=${HOME}/.session.log
|
||
|
if [[ -e $HOME/.session_logout ]]; then su -c "/bin/bash $HOME/.session_logout 1>>${log} 2>>${log} || true" $USER; fi
|