https://github.com/Paradigm4/shim
Raw File
Tip revision: 7942a3dc40a626f1aaa2fdcc5914bb7c5647c2dd authored by Rares Vernica on 01 September 2018, 16:21:02 UTC
Fix title after docs update
Tip revision: 7942a3d
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