Commit | Line | Data |
---|---|---|
b7cfede0 BK |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | # Purge various extra configuration files and data files created by the | |
6 | # package. Whether to purge KeyFile is a bit iffy since the user created it | |
7 | # with asetkey or with bos addkey, but it always exists for any running server | |
8 | # and we shouldn't be losing any critical data. | |
9 | # | |
10 | # We intentionally don't remove NetInfo and NetRestrict in | |
11 | # /var/lib/openafs/local since those are created separately by the user and | |
12 | # may contain information not stored elsewhere. | |
13 | if [ "$1" = 'purge' ] ; then | |
14 | for file in CellServDB CellServDB.old KeyFile ThisCell UserList ; do | |
15 | rm -f "/etc/openafs/server/$file" | |
16 | done | |
17 | for file in SALVAGE.fs fssync.sock salvage.lock sysid sysid.old ; do | |
18 | rm -f "/var/lib/openafs/local/$file" | |
19 | done | |
20 | rm -f /etc/openafs/BosConfig | |
21 | for file in BosLog FileLog SalvageLog VolserLog ; do | |
22 | rm -f "/var/log/openafs/$file" | |
23 | rm -f "/var/log/openafs/$file.old" | |
24 | done | |
25 | fi | |
26 | ||
27 | #DEBHELPER# |