Sha256: e638876baf3d152b38b114f69ff0eec4d7f3cbc3feea5e2739a98f600b002f0a

Contents?: true

Size: 765 Bytes

Versions: 42

Compression:

Stored size: 765 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
[ "$(ps aux | grep '[t]hin')" ] && [ -e "/etc/init.d/thin" ] && /etc/init.d/thin stop

#stop nginx
[ "$(ps aux | grep '[n]ginx')" ] && [ -e "/etc/init.d/nginx" ] && /etc/init.d/nginx stop

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

42 entries across 42 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 installer/unix-like/pre_uninstall.sh
rhoconnect-7.5.1 installer/unix-like/pre_uninstall.sh
rhoconnect-7.4.1 installer/unix-like/pre_uninstall.sh
rhoconnect-7.1.17 installer/unix-like/pre_uninstall.sh
rhoconnect-6.2.0 installer/unix-like/pre_uninstall.sh
rhoconnect-6.0.11 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.18 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.17 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.15 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.0.22 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.2 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.0.7 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.0.3 installer/unix-like/pre_uninstall.sh
rhoconnect-5.5.0 installer/unix-like/pre_uninstall.sh
rhoconnect-5.1.1 installer/unix-like/pre_uninstall.sh
rhoconnect-4.0.4 installer/unix-like/pre_uninstall.sh
rhoconnect-4.0.3 installer/unix-like/pre_uninstall.sh
rhoconnect-4.0.2 installer/unix-like/pre_uninstall.sh
rhoconnect-4.0.1 installer/unix-like/pre_uninstall.sh
rhoconnect-4.0.0 installer/unix-like/pre_uninstall.sh