summaryrefslogtreecommitdiffstats
path: root/osx/preflight
diff options
context:
space:
mode:
Diffstat (limited to 'osx/preflight')
-rw-r--r--osx/preflight11
1 files changed, 11 insertions, 0 deletions
diff --git a/osx/preflight b/osx/preflight
new file mode 100644
index 000000000..169551b35
--- /dev/null
+++ b/osx/preflight
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Remove old bcfg2 cruft
+#
+# ${3} is the destination volume so that this works correctly
+# when being installed to volumes other than the current OS.
+
+/bin/rm -Rvf "${3}"{SITELIBDIR}/Bcfg2*
+/bin/rm -Rvf "${3}"/usr/local/bin/bcfg2*
+/bin/rm -Rvf "${3}{DATADIR}/share/bcfg2"
+/bin/rm -Rvf "${3}{DATADIR}/share/man/man8/bcfg2*"