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
puppet-2.7.26 ext/osx/preflight.erb
puppet-2.7.25 ext/osx/preflight.erb
puppet-2.7.24 ext/osx/preflight.erb
puppet-3.3.2 ext/osx/preflight.erb
puppet-3.3.1 ext/osx/preflight.erb
puppet-3.3.1.rc3 ext/osx/preflight.erb
puppet-3.3.1.rc2 ext/osx/preflight.erb
puppet-3.3.1.rc1 ext/osx/preflight.erb
puppet-3.3.0 ext/osx/preflight.erb
puppet-3.3.0.rc3 ext/osx/preflight.erb
puppet-3.3.0.rc2 ext/osx/preflight.erb
puppet-3.2.4 ext/osx/preflight.erb
puppet-2.7.23 ext/osx/preflight.erb
puppet-3.2.3 ext/osx/preflight.erb
puppet-3.2.3.rc1 ext/osx/preflight.erb
puppet-3.2.2 ext/osx/preflight.erb
puppet-2.7.22 ext/osx/preflight.erb
puppet-3.2.1 ext/osx/preflight.erb
puppet-3.2.1.rc1 ext/osx/preflight.erb
puppet-3.2.0.rc2 ext/osx/preflight.erb