summaryrefslogtreecommitdiffstats
path: root/conf/osx/preflight
blob: 8066bf47d2b7bc3d305d8fba36c7e272abf1afc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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.

/bin/rm -Rf "${3}{SITELIBDIR}/facter"
/bin/rm -Rf "${3}{SITELIBDIR}/facter.rb"

# remove old doc files

/bin/rm -Rf "${3}/usr/share/doc/facter"