summaryrefslogtreecommitdiffstats
path: root/conf/osx/preflight
blob: cde682b9c5237c6f2592f215120d6a2387f9e340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#
# Make sure that old puppet cruft is removed
# This also allows us to downgrade puppet 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}/puppet"
/bin/rm -Rf "${3}{SITELIBDIR}/puppet.rb"