⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 postuninstall.sh

📁 firebird源代码
💻 SH
字号:
#!/bin/sh# The post uninstall routine for Firebird Classic.#------------------------------------------------------------------------# 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}#= Main PostUn ============================================================# I don't think this is needed anymore.#    if [ -L /usr/lib/libgds.so ] #      then #        rm /usr/lib/libgds.so #    fi     if [ "$1"=0 ]       then         # Lose the gds_db line from /etc/services         FileName=/etc/services        oldLine=`grep "^gds_db" $FileName`        removeLineFromFile "$FileName" "$oldLine"        # 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -