https://github.com/Paradigm4/shim
Raw File
Tip revision: d2c3a4d06b9219f052953c6dc054eb748983ead9 authored by Rares Vernica on 03 June 2019, 01:28:02 UTC
Suppress log output
Tip revision: d2c3a4d
before-remove.sh
#!/bin/bash
# shim
# package pre-uninstallation script
# This script is run by the package management system before package
# is uninstalled.

if test -f /etc/init.d/shimsvc; then
  /etc/init.d/shimsvc stop
fi
if test -n "$(which update-rc.d 2>/dev/null)"; then
# Ubuntu
  update-rc.d -f shimsvc remove
elif test -n "$(which chkconfig)"; then
# RHEL
  chkconfig --del shimsvc
fi
back to top