blob: 0baebe07f4dbe533e7542d40b8cea67f052eb8a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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..."
# we have to move the dir before trying to wipe it and then ignore errors since
# files may still be in use.
tmp_dir="/opt/.chef.$$"
mv $INSTALLER_DIR $tmp_dir
rm -rf $tmp_dir || true
|