Sha256: a0011877476880e625489dad7cdfcbfee5e4869dcfaf67878ada67bff74c0991

Contents?: true

Size: 1.12 KB

Versions: 39

Compression:

Stored size: 1.12 KB

Contents

#!/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.

<% begin %>
<% require 'rubygems' %>
<% rescue LoadError %>
<% end %>
<% require 'rake' %>

<% Dir.chdir("lib") %>
<% FileList["**/*"].select {|i| File.file?(i)}.each do |file| %>
/bin/rm -Rf "${3}<%= @apple_libdir %>/<%=file%>"
<% end %>

<% Dir.chdir("../bin") %>
<% FileList["**/*"].select {|i| File.file?(i)}.each do |file| %>
/bin/rm -Rf "${3}<%= @apple_bindir %>/<%=file%>"
<% end %>
<% Dir.chdir("..") %>

# remove old doc files
/bin/rm -Rf "${3}<%= @apple_docdir %>/<%= @package_name %>"

# These files used to live in the sbindir but were
# removed in Pupppet >= 3.0. Remove them
/bin/rm -Rf "${3}<%= @apple_sbindir %>/puppetca"
/bin/rm -Rf "${3}<%= @apple_sbindir %>/puppetd"
/bin/rm -Rf "${3}<%= @apple_sbindir %>/puppetmasterd"
/bin/rm -Rf "${3}<%= @apple_sbindir %>/puppetqd"
/bin/rm -Rf "${3}<%= @apple_sbindir %>/puppetrun"

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/ext/osx/preflight.erb
puppet-3.2.0.rc1 ext/osx/preflight.erb
puppet-2.7.21 ext/osx/preflight.erb
puppet-3.1.1 ext/osx/preflight.erb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/puppet-3.1.0/ext/osx/preflight.erb
puppet-3.1.0 ext/osx/preflight.erb
puppet-3.1.0.rc2 ext/osx/preflight.erb
puppet-3.1.0.rc1 ext/osx/preflight.erb
puppet-3.0.2 ext/osx/preflight.erb
puppet-3.0.2.rc3 ext/osx/preflight.erb
puppet-3.0.2.rc2 ext/osx/preflight.erb
puppet-3.0.2.rc1 ext/osx/preflight.erb
puppet-2.7.20 ext/osx/preflight.erb
puppet-2.7.20.rc1 ext/osx/preflight.erb
puppet-3.0.1 ext/osx/preflight.erb
puppet-3.0.1.rc1 ext/osx/preflight.erb
puppet-3.0.0 ext/osx/preflight.erb
puppet-3.0.0.rc8 ext/osx/preflight.erb
puppet-3.0.0.rc7 ext/osx/preflight.erb