9 lines
282 B
Bash
Executable File
9 lines
282 B
Bash
Executable File
#!/bin/bash
|
|
dir=${HOME}/${USER_SESSION_DIR:-.session}
|
|
file=${dir}/session_login
|
|
echo "running as user $(id -u), setup for ${USER}, file:${file} $(date)" >> /opt/scripts/lightdm.log
|
|
log=${dir}/session.log
|
|
if [[ -e "$file" ]]; then
|
|
/bin/bash $file 1>>${log} 2>>${log} || true
|
|
fi
|