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

33 lines
596 B
Bash
Raw Normal View History

2003-07-09 00:59:57 +02:00
#! /bin/sh
#------------------------------------------------------------------------
# remove line from config file if it exists in it.
removeLineFromFile() {
FileName=$1
oldLine=$2
if [ ! -z "$oldLine" ]
then
cat $FileName | grep -v "$oldLine" > ${FileName}.tmp
mv ${FileName}.tmp $FileName
echo "Updated."
fi
}
2003-09-08 21:31:12 +02:00
#= Main PostUn ===============================================================
2003-07-09 00:59:57 +02:00
# Update /etc/services
FileName=/etc/services
oldLine=`grep "^gds_db" $FileName`
removeLineFromFile "$FileName" "$oldLine"