8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-25 01:23:03 +01:00
firebird-mirror/builds/install/arch-specific/linux/super/postuninstall.sh.in

42 lines
801 B
Bash
Raw Normal View History

2003-07-09 00:59:57 +02:00
#! /bin/sh
2003-09-08 21:31:12 +02:00
#= Main PostUn ===============================================================
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
if [ "$1"=0 ]
then
removeLinksForBackCompatibility
2003-07-09 00:59:57 +02:00
2005-04-29 20:24:44 +02:00
# 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
2003-10-27 19:00:44 +01:00
# Remove /usr/sbin/rcfirebird symlink
2005-04-29 20:24:44 +02:00
if [ -e /usr/sbin/rcfirebird ]
then
rm -f /usr/sbin/rcfirebird
fi
2003-10-27 19:00:44 +01:00
# Remove initd script
2005-04-29 20:24:44 +02:00
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
2006-04-16 14:58:29 +02:00
if [ -d $PidDir ]
then
rm -rf $PidDir
fi