summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-20 13:28:02 -0800
committerGitHub <noreply@github.com>2018-11-20 13:28:02 -0800
commit54b1a13025bf6c2cc60f940107115d07159fc4ff (patch)
tree5b2ba855d2c676f6a6cb4963c10b3ffb5bb0a103
parent54b86851ea6706955b2ac600b11a13764320c4ff (diff)
parent37219237e28aab86ee70d607df244bf5d48ce460 (diff)
downloadchef-54b1a13025bf6c2cc60f940107115d07159fc4ff.tar.gz
Merge pull request #7964 from chef/lcg/wipe-before-install
wipe the installer direction before installation
-rwxr-xr-xomnibus/package-scripts/angrychef/preinst12
-rwxr-xr-xomnibus/package-scripts/chef-fips/preinst12
-rwxr-xr-xomnibus/package-scripts/chef/preinst12
3 files changed, 36 insertions, 0 deletions
diff --git a/omnibus/package-scripts/angrychef/preinst b/omnibus/package-scripts/angrychef/preinst
new file mode 100755
index 0000000000..c0406b567a
--- /dev/null
+++ b/omnibus/package-scripts/angrychef/preinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+# WARNING: REQUIRES /bin/sh
+#
+# - must run on /bin/sh on solaris 9
+# - must run on /bin/sh on AIX 6.x
+# - if you think you are a bash wizard, you probably do not understand
+# this programming language. do not touch.
+# - if you are under 40, get peer review from your elders.
+
+INSTALLER_DIR=/opt/angrychef
+echo "removing $INSTALLER_DIR..."
+rm -f $INSTALLER_DIR
diff --git a/omnibus/package-scripts/chef-fips/preinst b/omnibus/package-scripts/chef-fips/preinst
new file mode 100755
index 0000000000..585b262e1b
--- /dev/null
+++ b/omnibus/package-scripts/chef-fips/preinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+# WARNING: REQUIRES /bin/sh
+#
+# - must run on /bin/sh on solaris 9
+# - must run on /bin/sh on AIX 6.x
+# - if you think you are a bash wizard, you probably do not understand
+# this programming language. do not touch.
+# - if you are under 40, get peer review from your elders.
+
+INSTALLER_DIR=/opt/chef-fips
+echo "removing $INSTALLER_DIR..."
+rm -f $INSTALLER_DIR
diff --git a/omnibus/package-scripts/chef/preinst b/omnibus/package-scripts/chef/preinst
new file mode 100755
index 0000000000..d46a900bde
--- /dev/null
+++ b/omnibus/package-scripts/chef/preinst
@@ -0,0 +1,12 @@
+#!/bin/sh
+# WARNING: REQUIRES /bin/sh
+#
+# - must run on /bin/sh on solaris 9
+# - must run on /bin/sh on AIX 6.x
+# - if you think you are a bash wizard, you probably do not understand
+# this programming language. do not touch.
+# - if you are under 40, get peer review from your elders.
+
+INSTALLER_DIR=/opt/chef
+echo "removing $INSTALLER_DIR..."
+rm -f $INSTALLER_DIR