openafs-tools-cmd-20020115
[openafs.git] / src / tools / install / afs_uninstall
1 #!/bin/sh
2 # OpenAFS uninstallation script for Linux
3 # openafs-tools, Version 1.2.2
4 #
5 # Copyright 2001, International Business Machines Corporation and others.
6 # All Rights Reserved.
7
8 # This software has been released under the terms of the IBM Public
9 # License.  For details, see the LICENSE file in the top-level source
10 # directory or online at http://www.openafs.org/dl/license10.html
11 #
12 # the directory with the openafs-tools files:
13 afscodeFileDir=/usr/afs/tools/install/
14 #
15 echo "Uninstall" > $afscodeFileDir/.afs_state
16 echo "begin" >> $afscodeFileDir/.afs_state
17 bosserver_process=$(ps -Ao pid,cmd | grep boss)
18 kill ${bosserver_process%% /*}
19 rm -rf /vicep*/*
20 rm -rf /etc/rc.d/rc*.d/*afs*
21 perl $afscodeFileDir/write_pam.pl disable
22 rm -f /lib/security/pam_afs.so
23 rm -rf /usr/afs/db
24 rm -rf /usr/afs/etc
25 rm -rf /usr/afs/local
26 rm -rf /usr/afs/logs
27 rm -f /usr/vice/etc/CellServDB
28 rm -f /usr/vice/etc/ThisCell
29 rm -f /usr/vice/etc/AFSLog
30 rm -rf /usr/vice/cache
31 mkdir /usr/vice/cache
32 echo "Uninstall" > $afscodeFileDir/.afs_state
33 echo "complete" >> $afscodeFileDir/.afs_state
34
35
36
37