From df8fc8c7929031fc06fe70728e4b2f925645f34a Mon Sep 17 00:00:00 2001 From: Nigel Kersten Date: Tue, 5 Aug 2008 13:46:35 -0700 Subject: fix terrible error with overwriting permissions --- conf/osx/PackageInfo.plist | 2 +- conf/osx/createpackage.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'conf') diff --git a/conf/osx/PackageInfo.plist b/conf/osx/PackageInfo.plist index 84b4422..38b76d8 100644 --- a/conf/osx/PackageInfo.plist +++ b/conf/osx/PackageInfo.plist @@ -23,7 +23,7 @@ IFPkgFlagIsRequired IFPkgFlagOverwritePermissions - + IFPkgFlagRelocatable IFPkgFlagRestartAction diff --git a/conf/osx/createpackage.sh b/conf/osx/createpackage.sh index 747dda9..d8c2c52 100755 --- a/conf/osx/createpackage.sh +++ b/conf/osx/createpackage.sh @@ -61,8 +61,8 @@ function prepare_package() { # As we can't specify to follow symlinks from the command line, we have # to go through the hassle of creating an Info.plist file for packagemaker # to look at for package creation and substitue the version strings out. - # Major/Minor versions can only be integers, so we have "0" and "245" for - # puppet version 0.24.5 + # Major/Minor versions can only be integers, so we have "1" and "50" for + # facter version 1.5 # Note too that for 10.5 compatibility this Info.plist *must* be set to # follow symlinks. VER1=$(echo ${facter_version} | awk -F "." '{print $1}') @@ -76,18 +76,18 @@ function prepare_package() { sed -i '' "s/{MINORVERSION}/${minor_version}/g" "${pkgtemp}/${PROTO_PLIST}" # We need to create a preflight script to remove traces of previous - # puppet installs due to limitations in Apple's pkg format. + # facter installs due to limitations in Apple's pkg format. mkdir "${pkgtemp}/scripts" cp "${facter_root}/conf/osx/${PREFLIGHT}" "${pkgtemp}/scripts" # substitute in the sitelibdir specified above on the assumption that this - # is where any previous puppet install exists that should be cleaned out. + # is where any previous facter install exists that should be cleaned out. sed -i '' "s|{SITELIBDIR}|${SITELIBDIR}|g" "${pkgtemp}/scripts/${PREFLIGHT}" chmod 0755 "${pkgtemp}/scripts/${PREFLIGHT}" } function create_package() { - rm -fr "$(pwd)/facter-${puppet_version}.pkg" + rm -fr "$(pwd)/facter-${facter_version}.pkg" echo "Building package" echo "Note that packagemaker is reknowned for spurious errors. Don't panic." "${PACKAGEMAKER}" --root "${pkgroot}" \ -- cgit