summaryrefslogtreecommitdiffstats
path: root/conf/osx/preflight
diff options
context:
space:
mode:
Diffstat (limited to 'conf/osx/preflight')
-rwxr-xr-xconf/osx/preflight11
1 files changed, 11 insertions, 0 deletions
diff --git a/conf/osx/preflight b/conf/osx/preflight
new file mode 100755
index 0000000..400a261
--- /dev/null
+++ b/conf/osx/preflight
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Make sure that old facter cruft is removed
+# This also allows us to downgrade facter as
+# it's more likely that installing old versions
+# over new will cause issues.
+#
+# ${3} is the destination volume so that this works correctly
+# when being installed to volumes other than the current OS.
+
+rm -Rf "${3}{SITELIBDIR}/facter*"