8a0d0ecf045c5b0916e465af6ef6b168524b9f33
[openafs.git] / src / packaging / MacOS / InstallationCheck.9
1 #!/bin/sh
2 majorvers=`uname -r | sed 's/\..*//'`
3 echo "InstallationCheck: os release is $majorvers"
4 if [ $majorvers -ne 9 ]; then
5         exit 112
6 fi
7
8 # check for temporary versions of ThisCell and CellAlias
9 # and move them aside
10 tmpthiscell=/private/tmp/org.OpenAFS.Install.ThisCell.$USER
11 tmpcellalias=/private/tmp/org.OpenAFS.Install.CellAlias.$USER
12 date=`date +%Y%m%d%H%M`
13 if [ -e $tmpthiscell ]; then
14     mv -f $tmpthiscell $tmpthiscell.$date
15 fi
16 if [ -e $tmpcellalias ]; then
17     mv -f $tmpcellalias $tmpcellalias.$date
18 fi
19
20 exit 0