Revision 25370,
1.3 KB
checked in by jdreed, 13 years ago
(diff) |
In xsession:
* Don't tell private workstation owners to contact hotline (Trac: #998)
|
Rev | Line | |
---|
[25007] | 1 | youlose() { |
---|
[25370] | 2 | notify="hotline@mit.edu" |
---|
| 3 | [ "$(machtype -L)" != "debathena-cluster" ] && notify="your system administrator" |
---|
| 4 | zenity --warning --text="Your AFS home directory appears to be unavailable, and this login session cannot continue.\n\nThis could be due to an AFS outage, a network problem, or an issue with this specific workstation. We recommend you try another workstation.\n\nIf the problem appears to only be on this workstation, please notify $notify and mention this machine's hostname ($(hostname -f)). If the problem persists on multiple workstations, please contact the IS&T Helpdesk (helpdesk@mit.edu or x3-1101)." |
---|
[25007] | 5 | exit 0 |
---|
| 6 | } |
---|
[25009] | 7 | youmightlose() { |
---|
| 8 | if ! zenity --question --text="Your home directory type could not be determined. This might indicate problems with the AFS servers, or you might have an error in your AFS permissions.\n\nIf you know what you're doing, it's possible that this error is benign and you can continue. However, it's more than likely that this login session will fail and you'll need to reboot the workstation to log out. With that in mind, would you like to continue?"; then |
---|
| 9 | exit 0 |
---|
[24990] | 10 | fi |
---|
[25009] | 11 | } |
---|
| 12 | case "$DEBATHENA_HOME_TYPE" in |
---|
| 13 | missing) |
---|
| 14 | youlose |
---|
| 15 | ;; |
---|
| 16 | unknown) |
---|
| 17 | youmightlose |
---|
| 18 | ;; |
---|
| 19 | afs) |
---|
| 20 | [ -d "$HOME" ] || youlose |
---|
| 21 | ;; |
---|
| 22 | esac |
---|
[25007] | 23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.