summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorNigel Kersten <nigel@explanatorygap.net>2008-08-05 13:46:35 -0700
committerJames Turnbull <james@lovedthanlost.net>2008-08-06 09:45:09 +1000
commitdf8fc8c7929031fc06fe70728e4b2f925645f34a (patch)
treec97ef696e7febf15757b09f437780279d26ab66f /conf
parent91ca4abba2fdf100c83790408d4fefa38dddc6f9 (diff)
downloadfacter-df8fc8c7929031fc06fe70728e4b2f925645f34a.tar.gz
facter-df8fc8c7929031fc06fe70728e4b2f925645f34a.tar.xz
facter-df8fc8c7929031fc06fe70728e4b2f925645f34a.zip
fix terrible error with overwriting permissions
Diffstat (limited to 'conf')
-rw-r--r--conf/osx/PackageInfo.plist2
-rwxr-xr-xconf/osx/createpackage.sh10
2 files changed, 6 insertions, 6 deletions
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 @@
<key>IFPkgFlagIsRequired</key>
<false/>
<key>IFPkgFlagOverwritePermissions</key>
- <true/>
+ <false/>
<key>IFPkgFlagRelocatable</key>
<false/>
<key>IFPkgFlagRestartAction</key>
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}" \