summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-11-20 13:45:57 -0800
committerGitHub <noreply@github.com>2018-11-20 13:45:57 -0800
commit821c1e9723d967afa365f7047bddb502b92c5b9a (patch)
treefdb61b1560288a1c526c676f576028f1cd3a456e
parent2e631d62f1518987e2cfede6af621774f0f49a93 (diff)
parent845ab6032949ba8682f8f430630e16fd774886af (diff)
downloadchef-821c1e9723d967afa365f7047bddb502b92c5b9a.tar.gz
Merge pull request #7966 from chef/lcg/wipe-before-install
need -rf to remove dirs
-rwxr-xr-xomnibus/package-scripts/angrychef/preinst2
-rwxr-xr-xomnibus/package-scripts/chef-fips/preinst2
-rwxr-xr-xomnibus/package-scripts/chef/preinst2
3 files changed, 3 insertions, 3 deletions
diff --git a/omnibus/package-scripts/angrychef/preinst b/omnibus/package-scripts/angrychef/preinst
index c0406b567a..b3038a10c6 100755
--- a/omnibus/package-scripts/angrychef/preinst
+++ b/omnibus/package-scripts/angrychef/preinst
@@ -9,4 +9,4 @@
INSTALLER_DIR=/opt/angrychef
echo "removing $INSTALLER_DIR..."
-rm -f $INSTALLER_DIR
+rm -rf $INSTALLER_DIR
diff --git a/omnibus/package-scripts/chef-fips/preinst b/omnibus/package-scripts/chef-fips/preinst
index 585b262e1b..834c29544b 100755
--- a/omnibus/package-scripts/chef-fips/preinst
+++ b/omnibus/package-scripts/chef-fips/preinst
@@ -9,4 +9,4 @@
INSTALLER_DIR=/opt/chef-fips
echo "removing $INSTALLER_DIR..."
-rm -f $INSTALLER_DIR
+rm -rf $INSTALLER_DIR
diff --git a/omnibus/package-scripts/chef/preinst b/omnibus/package-scripts/chef/preinst
index d46a900bde..1880275e99 100755
--- a/omnibus/package-scripts/chef/preinst
+++ b/omnibus/package-scripts/chef/preinst
@@ -9,4 +9,4 @@
INSTALLER_DIR=/opt/chef
echo "removing $INSTALLER_DIR..."
-rm -f $INSTALLER_DIR
+rm -rf $INSTALLER_DIR