X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fpackaging%2FMacOS%2FInstallationCheck.8;h=1975ef742d1bcefcc37b64a40b078f41c2708425;hp=d905d158f8a62ca1f11c4b327cfaf34da5031a40;hb=1ea9c02f8ec985605a52bde331de5c848a7a5d56;hpb=adddef8d1464cdf5ef07e9ee5e0b8a09f9ce8805 diff --git a/src/packaging/MacOS/InstallationCheck.8 b/src/packaging/MacOS/InstallationCheck.8 index d905d15..1975ef7 100644 --- a/src/packaging/MacOS/InstallationCheck.8 +++ b/src/packaging/MacOS/InstallationCheck.8 @@ -6,5 +6,17 @@ echo "InstallationCheck: not ok" exit 112 fi +# check for temporary versions of ThisCell and CellAlias +# and move them aside +tmpthiscell=/private/tmp/org.OpenAFS.Install.ThisCell.$USER +tmpcellalias=/private/tmp/org.OpenAFS.Install.CellAlias.$USER +date=`date +%Y%m%d%H%M` +if [ -e $tmpthiscell ]; then + mv -f $tmpthiscell $tmpthiscell.$date +fi +if [ -e $tmpcellalias ]; then + mv -f $tmpcellalias $tmpcellalias.$date +fi + echo "InstallationCheck: ok" exit 0