[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 #!/bin/bash 2 3 function cleanpl 4 { 5 for user in /home/* 6 do 7 [ -d "$user"/profil/Bureau ] && find "$user"/profil/Bureau -user root -type f -exec rm -f "{}" \; 8 [ -d "$user"/profil/Demarrer ] && find "$user"/profil/Demarrer -user root -type f -exec rm -f "{}" \; 9 done 10 } 11 12 function cleanpy 13 { 14 for user in /home/* 15 do 16 [ -d "$user"/profil/Bureau ] && find "$user"/profil/Bureau -user root -type l -exec rm -f "{}" \; 17 [ -d "$user"/profil/Demarrer ] && find "$user"/profil/Demarrer -user root -type l -exec rm -f "{}" \; 18 done 19 } 20 21 22 logon_env="$(cat /etc/se3/logon_env.conf 2>/dev/null)" 23 24 if [ "$logon_env" == "logonpl" ] 25 then 26 cleanpy 27 rm -rf /home/profiles/* 28 elif [ "$logon_env" == "logonpy" ] 29 then 30 cleanpl 31 for user in /home/* 32 do 33 [ -d "$user"/profile ] && rm -rf "$user"/profile/* 34 done 35 fi
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |