summaryrefslogtreecommitdiff
path: root/omnibus/package-scripts
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-11-20 12:50:44 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2018-11-20 12:50:44 -0800
commit37219237e28aab86ee70d607df244bf5d48ce460 (patch)
tree5b2ba855d2c676f6a6cb4963c10b3ffb5bb0a103 /omnibus/package-scripts
parent54b86851ea6706955b2ac600b11a13764320c4ff (diff)
downloadchef-37219237e28aab86ee70d607df244bf5d48ce460.tar.gz
wipe the installer direction before installation
this leaves the diretory after an uninstall, but it should get the crazy redhat use case correct where installs run before uninstalls, so we wipe first, install, then run the uninstall stuff on upgrade. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'omnibus/package-scripts')
-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