Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / packaging / MacOS / InstallationCheck.12
blob28a6e1fc207d4a58a78b804f9e3b5d366cad09d7
1 #!/bin/sh
2 majorvers=`uname -r | sed 's/\..*//'`
3 if [ $majorvers -ne 12 ]; then
4 exit 112
5 fi
7 # check for temporary versions of ThisCell and CellAlias
8 # and move them aside
9 tmpthiscell=/private/tmp/org.OpenAFS.Install.ThisCell.$USER
10 tmpcellalias=/private/tmp/org.OpenAFS.Install.CellAlias.$USER
11 date=`date +%Y%m%d%H%M`
12 if [ -e $tmpthiscell ]; then
13 mv -f $tmpthiscell $tmpthiscell.$date
15 if [ -e $tmpcellalias ]; then
16 mv -f $tmpcellalias $tmpcellalias.$date
19 exit 0