macos installer scripts shouldn't echo
[openafs.git] / src / packaging / MacOS / InstallationCheck.9
index 9061222..53a7fdc 100644 (file)
@@ -1,10 +1,19 @@
 #!/bin/sh
 majorvers=`uname -r | sed 's/\..*//'`
-echo "InstallationCheck: os release is $majorvers"
 if [ $majorvers -ne 9 ]; then
-echo "InstallationCheck: not ok"
        exit 112
 fi
 
-echo "InstallationCheck: ok"
+# 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
+
 exit 0