mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 12:03:02 +01:00
42 lines
801 B
Bash
42 lines
801 B
Bash
#! /bin/sh
|
|
|
|
#= Main PostUn ===============================================================
|
|
|
|
if [ "$1"=0 ]
|
|
then
|
|
removeLinksForBackCompatibility
|
|
|
|
# If we have right systems remove the service autoconfig stuff.
|
|
if [ -x /sbin/insserv ]
|
|
then
|
|
/sbin/insserv /etc/init.d/
|
|
fi
|
|
|
|
if [ -x /sbin/chkconfig ]
|
|
then
|
|
/sbin/chkconfig --del firebird
|
|
fi
|
|
|
|
# Remove /usr/sbin/rcfirebird symlink
|
|
if [ -e /usr/sbin/rcfirebird ]
|
|
then
|
|
rm -f /usr/sbin/rcfirebird
|
|
fi
|
|
|
|
# Remove initd script
|
|
if [ -e /etc/init.d/firebird ]
|
|
then
|
|
rm -f /etc/init.d/firebird
|
|
fi
|
|
|
|
if [ -e /etc/rc.d/init.d/firebird ]
|
|
then
|
|
rm -f /etc/rc.d/init.d/firebird
|
|
fi
|
|
fi
|
|
|
|
if [ -d $PidDir ]
|
|
then
|
|
rm -rf $PidDir
|
|
fi
|