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