diff options
author | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2016-01-08 13:40:52 -0800 |
---|---|---|
committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2016-01-11 15:00:42 -0500 |
commit | 69318b7e7f3dd3c2e4dd76da6e2d5eb774cc3762 (patch) | |
tree | 9371946700c474327224ea158b0bfcb8b109f70e /omnibus/package-scripts | |
parent | ab5c35a7f72ab7c58a463ddf1dfe937d8db84f71 (diff) | |
download | chef-69318b7e7f3dd3c2e4dd76da6e2d5eb774cc3762.tar.gz |
Remove non-chef related files
Diffstat (limited to 'omnibus/package-scripts')
-rwxr-xr-x | omnibus/package-scripts/chefdk/postinst | 57 | ||||
-rwxr-xr-x | omnibus/package-scripts/chefdk/postrm | 42 | ||||
-rwxr-xr-x | omnibus/package-scripts/push-jobs-client/postinst | 55 | ||||
-rwxr-xr-x | omnibus/package-scripts/push-jobs-client/postrm | 39 |
4 files changed, 0 insertions, 193 deletions
diff --git a/omnibus/package-scripts/chefdk/postinst b/omnibus/package-scripts/chefdk/postinst deleted file mode 100755 index 73a37487c9..0000000000 --- a/omnibus/package-scripts/chefdk/postinst +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -# WARNING: REQUIRES /bin/sh -# -# Post install configuration for Chef Development Kit -# - -PROGNAME=`basename $0` -INSTALLER_DIR=/opt/chefdk -CONFIG_DIR=/etc/chef -USAGE="usage: $0" - -error_exit() -{ - echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2 - exit 1 -} - -is_darwin() -{ - uname -v | grep "^Darwin" 2>&1 >/dev/null -} - -is_smartos() -{ - uname -v | grep "^joyent" 2>&1 >/dev/null -} - -if is_smartos; then - PREFIX="/opt/local" -elif is_darwin; then - PREFIX="/usr/local" - mkdir -p "$PREFIX/bin" -else - PREFIX="/usr" -fi - -# We test for the presence of /usr/bin/chef-client to know if this script succeeds, -# so chef-client must appear as the last item here. -binaries="chef chef-solo chef-apply chef-shell knife ohai berks fauxhai foodcritic kitchen rubocop chef-client" - -# rm -f before ln -sf is required for solaris 9 -for binary in $binaries; do - rm -f $PREFIX/bin/$binary -done - -for binary in $binaries; do - ln -sf $INSTALLER_DIR/bin/$binary $PREFIX/bin || error_exit "Cannot link $binary to $PREFIX/bin" -done - -# Ensure all files/directories in $INSTALLER_DIR are owned by root. This -# has been fixed on new installs but upgrades from old installs need to -# be manually fixed. -chown -Rh 0:0 $INSTALLER_DIR - -echo "Thank you for installing Chef Development Kit!" - -exit 0 diff --git a/omnibus/package-scripts/chefdk/postrm b/omnibus/package-scripts/chefdk/postrm deleted file mode 100755 index 428bf7c3b0..0000000000 --- a/omnibus/package-scripts/chefdk/postrm +++ /dev/null @@ -1,42 +0,0 @@ -#!/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. - -is_darwin() -{ - uname -v | grep "^Darwin" 2>&1 >/dev/null -} - -is_smartos() { - uname -v | grep "^joyent" 2>&1 >/dev/null -} - -if is_smartos; then - PREFIX="/opt/local" -elif is_darwin; then - PREFIX="/usr/local" -else - PREFIX="/usr" -fi - -cleanup_symlinks() { - binaries="chef chef-solo chef-apply chef-shell knife shef ohai berks chef-zero fauxhai foodcritic kitchen rubocop strain strainer chef-client" - for binary in $binaries; do - rm -f $PREFIX/bin/$binary - done -} - -# Clean up binary symlinks if they exist -# see: http://tickets.opscode.com/browse/CHEF-3022 -if [ ! -f /etc/redhat-release -a ! -f /etc/fedora-release -a ! -f /etc/system-release ]; then - # not a redhat-ish RPM-based system - cleanup_symlinks -elif [ "x$1" = "x0" ]; then - # RPM-based system and we're deinstalling rather than upgrading - cleanup_symlinks -fi diff --git a/omnibus/package-scripts/push-jobs-client/postinst b/omnibus/package-scripts/push-jobs-client/postinst deleted file mode 100755 index 66e58ae368..0000000000 --- a/omnibus/package-scripts/push-jobs-client/postinst +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# WARNING: REQUIRES /bin/sh -# -# Post install configuration for Push Jobs Client -# - -PROGNAME=`basename $0` -INSTALLER_DIR=/opt/push-jobs-client - -error_exit() -{ - echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2 - exit 1 -} - -is_darwin() -{ - uname -v | grep "^Darwin" 2>&1 >/dev/null -} - -is_smartos() -{ - uname -v | grep "^joyent" 2>&1 >/dev/null -} - -if is_smartos; then - PREFIX="/opt/local" -elif is_darwin; then - PREFIX="/usr/local" - mkdir -p "$PREFIX/bin" -else - PREFIX="/usr" -fi - -# We test for the presence of /usr/bin/push-client to know if this script succeeds, -# so push-client must appear as the last item here. -binaries="pushy-client" - -# rm -f before ln -sf is required for solaris 9 -for binary in $binaries; do - rm -f $PREFIX/bin/$binary -done - -for binary in $binaries; do - ln -sf $INSTALLER_DIR/bin/$binary $PREFIX/bin || error_exit "Cannot link $binary to $PREFIX/bin" -done - -# Ensure all files/directories in $INSTALLER_DIR are owned by root. This -# has been fixed on new installs but upgrades from old installs need to -# be manually fixed. -chown -Rh 0:0 $INSTALLER_DIR - -echo "Thank you for installing Chef Push Jobs Client!" - -exit 0 diff --git a/omnibus/package-scripts/push-jobs-client/postrm b/omnibus/package-scripts/push-jobs-client/postrm deleted file mode 100755 index f4508a48fe..0000000000 --- a/omnibus/package-scripts/push-jobs-client/postrm +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# WARNING: REQUIRES /bin/sh -# -# Post uninstall configuration for Push Jobs Client -# - -is_smartos() { - uname -v | grep "^joyent" 2>&1 >/dev/null -} - -is_darwin() -{ - uname -v | grep "^Darwin" 2>&1 >/dev/null -} - -if is_smartos; then - PREFIX="/opt/local" -elif is_darwin; then - PREFIX="/usr/local" -else - PREFIX="/usr" -fi - -cleanup_symlinks() { - binaries="pushy-client" - for binary in $binaries; do - rm -f $PREFIX/bin/$binary - done -} - -# Clean up binary symlinks if they exist -# see: http://tickets.opscode.com/browse/CHEF-3022 -if [ ! -f /etc/redhat-release -a ! -f /etc/fedora-release -a ! -f /etc/system-release -a ! -f /etc/SuSE-release ]; then - # not a redhat-ish RPM-based system - cleanup_symlinks -elif [ "x$1" = "x0" ]; then - # RPM-based system and we're deinstalling rather than upgrading - cleanup_symlinks -fi |