Sha256: 065a29a3bd1c91d519b71130e2d8f2f2b7888ae5badf22faf4403d9996d0d0d3

Contents?: true

Size: 738 Bytes

Versions: 1

Compression:

Stored size: 738 Bytes

Contents

#!/bin/bash

#echo "before_remove script is running ..."
echo "Stopping rhoconnect services and remove init scripts ..."

# Stop redis
if [ -e "/etc/init.d/redis" ]; then
  /etc/init.d/redis stop
  if [[ `which dpkg 2> /dev/null` != "" ]]; then  # Debian
    update-rc.d -f redis remove
  elif [[ `which rpm 2> /dev/null` != "" ]]; then # Red Hat
    /sbin/chkconfig redis off
  fi
fi

#stop thin
if [ -e "/etc/init.d/thin" ]; then /etc/init.d/thin stop; fi

#stop nginx
if [ -e "/etc/init.d/nginx" ]; then /etc/init.d/nginx stop; fi

#/etc/logrotate.d/redis
rm -f /etc/init.d/redis
rm -f /etc/logrotate.d/redis

rm -f /etc/init.d/nginx
rm -f /etc/logrotate.d/nginx

rm -f /etc/thin/rhoapp.yml
rm -f /etc/rc.d/thin
rm -f /etc/init.d/thin

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhoconnect-3.2.0.beta1 installer/unix-like/pre_uninstall.sh