亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tarmainuninstall.sh

?? 2000年7月,Borland(即現在的Inprise)公司公布了其數據庫產品Interbase的源代碼.Firebird數據庫就是從該數據庫中派生出來的.當時,Interbase是與客戶/服務器版本
?? SH
?? 第 1 頁 / 共 2 頁
字號:
#!/bin/sh# posixLibrary.sh#!/bin/sh#------------------------------------------------------------------------# Global stuff initAnswer=""OrigPasswd=""TmpFile=""FBRootDir=/opt/firebirdexport FBRootDirFBBin=$FBRootDir/binexport FBBinSecurityDatabase=security2.fdbArchiveDateTag=`date +"%Y%m%d_%H%M"`export ArchiveDateTagArchiveMainFile="${FBRootDir}_${ArchiveDateTag}.tar.gz"export ArchiveMainFile#------------------------------------------------------------------------# Create temporary file. In case mktemp failed, do something...MakeTemp() {	TmpFile=`mktemp -q /tmp/firebird_install.XXXXXX`	if [ $? -ne 0 ]	then		TmpFile=/tmp/firebird_install		touch $TmpFile	fi}#------------------------------------------------------------------------# Prompt for response, store result in AnswerAskQuestion() {    Test=$1    DefaultAns=$2    echo -n "${1}"    Answer="$DefaultAns"    read Answer    if [ -z "$Answer" ]    then        Answer="$DefaultAns"    fi}#------------------------------------------------------------------------# Prompt for yes or no answer - returns non-zero for noAskYNQuestion() {    while echo -n "${*} (y/n): "    do        read answer rest        case $answer in        [yY]*)            return 0            ;;        [nN]*)            return 1            ;;        *)            echo "Please answer y or n"            ;;        esac    done}#------------------------------------------------------------------------# Run $1. If exit status is not zero, show output to user.runSilent() {	MakeTemp	$1 >$TmpFile 2>&1	if [ $? -ne 0 ]	then		cat $TmpFile		echo ""		rm -f $TmpFile		return 1	fi	rm -f $TmpFile	return 0}#------------------------------------------------------------------------# Check for a user, running install, to be rootcheckRootUser() {    if [ "`whoami`" != "root" ];      then        echo ""        echo "--- Stop ----------------------------------------------"        echo ""        echo "    You need to be 'root' user to do this change"        echo ""        exit 1    fi}#aliascheckInstallUser() {	checkRootUser}#------------------------------------------------------------------------#  resetInetdServer#  Works for both inetd and xinetdresetInetdServer() {	pid=`ps -efww | grep inetd | grep -v grep | awk '{print $2}'`    if [ "$pid" ]    then        kill -HUP $pid    fi}#------------------------------------------------------------------------# remove the xinetd config file(s)# take into account possible pre-firebird xinetd servicesremoveXinetdEntry() {	for i in `grep -l "service gds_db" /etc/xinetd.d/*`	do        rm -f $i    done}#------------------------------------------------------------------------# remove the line from inetd fileremoveInetdEntry() {    FileName=/etc/inetd.conf    oldLine=`grep "^gds_db" $FileName`    removeLineFromFile "$FileName" "$oldLine"}#------------------------------------------------------------------------#  Remove (x)inetd service entry and restart the service.#  Check to see if we have xinetd installed or plain inetd.  #  Install differs for each of them.removeInetdServiceEntry() {    if [ -d /etc/xinetd.d ]     then        removeXinetdEntry    elif [ -f /etc/inetd.conf ]	then        removeInetdEntry    fi    # make [x]inetd reload configuration	resetInetdServer}#------------------------------------------------------------------------#  check if it is runningcheckIfServerRunning() {    stopSuperServerIfRunning# Check is server is being actively used.    checkString=`ps -efww| egrep "\b(fbserver|fbguard)\b" |grep -v grep`    if [ ! -z "$checkString" ]    then        echo "An instance of the Firebird Super server seems to be running."        echo "Please quit all Firebird applications and then proceed."        exit 1    fi    checkString=`ps -efww| egrep "\b(fb_inet_server|gds_pipe)\b" |grep -v grep`    if [ ! -z "$checkString" ]    then        echo "An instance of the Firebird Classic server seems to be running."        echo "Please quit all Firebird applications and then proceed."        exit 1    fi# The following check for running interbase or firebird 1.0 servers.    checkString=`ps -efww| egrep "\b(ibserver|ibguard)\b" |grep -v grep`    if [ ! -z "$checkString" ]     then        echo "An instance of the Firebird/InterBase Super server seems to be running."         echo "(the ibserver or ibguard process was detected running on your system)"        echo "Please quit all Firebird applications and then proceed."        exit 1     fi    checkString=`ps -efww| egrep "\b(gds_inet_server|gds_pipe)\b" |grep -v grep`    if [ ! -z "$checkString" ]     then        echo "An instance of the Firebird/InterBase Classic server seems to be running."         echo "(the gds_inet_server or gds_pipe process was detected running on your system)"        echo "Please quit all Firebird applications and then proceed."         exit 1     fi	removeInetdServiceEntry	# Stop lock manager if it is the only thing running.    for i in `ps -efww | grep "fb_lock_mgr" | grep -v "grep" | awk '{print $2}' `	do        kill $i	done}#------------------------------------------------------------------------#  ask user to enter CORRECT original DBA passwordaskForOrigDBAPassword() {    OrigPasswd=""    while [ -z "$OrigPasswd" ]    do        AskQuestion "Please enter current password for SYSDBA user: "        OrigPasswd=$Answer        if ! runSilent "$FBBin/gsec -user sysdba -password $OrigPasswd -di"		then			OrigPasswd=""		fi	done}#------------------------------------------------------------------------#  Modify DBA password to value, asked from user. #  $1 may be set to original DBA password#  !! This routine is interactive !!askUserForNewDBAPassword() {	if [ -z $1 ]	then		askForOrigDBAPassword	else		OrigPasswd=$1	fi    NewPasswd=""    while [ -z "$NewPasswd" ]    do        AskQuestion "Please enter new password for SYSDBA user: "        NewPasswd=$Answer        if [ ! -z "$NewPasswd" ]        then            if ! runSilent "$FBBin/gsec -user sysdba -password $OrigPasswd -modify sysdba -pw $NewPasswd"            then				NewPasswd=""			fi		fi	done}#------------------------------------------------------------------------# add a line in the (usually) /etc/services or /etc/inetd.conf file# Here there are three cases, not found         => add#                             found & different => replace#                             found & same      => do nothing#                             replaceLineInFile() {    FileName="$1"    newLine="$2"    oldLine=`grep "$3" $FileName`    if [ -z "$oldLine" ]     then        echo "$newLine" >> "$FileName"    elif [ "$oldLine" != "$newLine"  ]    then		MakeTemp        grep -v "$oldLine" "$FileName" > "$TmpFile"        echo "$newLine" >> $TmpFile	    # The \n is needed, some /etc/services files are missing a trailing    	# line feed - MOD 12-Dec-2003		echo "" >>$TmpFile        cp $TmpFile $FileName && rm -f $TmpFile        echo "Updated $1"    fi}#------------------------------------------------------------------------# "edit" file $1 - replace line starting from $2 with $3# This should stop ed/ex/vim/"what else editor" battle.# I hope awk is present in any posix system? AP.editFile() {    FileName=$1    Starting=$2    NewLine=$3		AwkProgram="(\$1 == \"$Starting\") {\$0=\"$NewLine\"} {print \$0}"	MakeTemp	awk "$AwkProgram" <$FileName >$TmpFile && mv $TmpFile $FileName || rm -f $TmpFile}#------------------------------------------------------------------------# 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        cp ${FileName}.tmp $FileName && rm -f ${FileName}.tmp    fi}#------------------------------------------------------------------------# Write new password to the /opt/firebird/SYSDBA.password filewriteNewPassword() {    NewPasswd=$1	DBAPasswordFile=$FBRootDir/SYSDBA.password	cat <<EOT >$DBAPasswordFile# Firebird generated password for user SYSDBA is:ISC_USER=sysdbaISC_PASSWD=$NewPasswdEOT    if [ $NewPasswd = "masterkey" ]    then        echo "# for install on `hostname` at time `date`" >> $DBAPasswordFile        echo "# You should change this password at the earliest oportunity" >> $DBAPasswordFile    else         echo "# generated on `hostname` at time `date`" >> $DBAPasswordFile    fi		cat <<EOT >>$DBAPasswordFile# Your password can be changed to a more suitable one using the# /opt/firebird/bin/changeDBAPassword.sh scriptEOT    chmod u=r,go= $DBAPasswordFile    # Only if we have changed the password from the default do we need    # to update the entry in the database    if [ $NewPasswd != "masterkey" ]    then        runSilent "$FBBin/gsec -user sysdba -password masterkey -modify sysdba -pw $NewPasswd"    fi}#------------------------------------------------------------------------#  Generate new sysdba password - this routine is used only in the #  rpm file not in the install script.generateNewDBAPassword() {    # openssl generates random data.	openssl </dev/null >/dev/null 2&>/dev/null    if [ $? -eq 0 ]    then        # We generate 20 random chars, strip any '/''s and get the first 8        NewPasswd=`openssl rand -base64 20 | tr -d '/' | cut -c1-8`    fi    # mkpasswd is a bit of a hassle, but check to see if it's there    if [ -z "$NewPasswd" ]    then        if [ -f /usr/bin/mkpasswd ]        then            NewPasswd=`/usr/bin/mkpasswd -l 8`        fi    fi	# On some systems the mkpasswd program doesn't appear and on others	# there is another mkpasswd which does a different operation.  So if	# the specific one isn't available then keep the original password.    if [ -z "$NewPasswd" ]    then        NewPasswd="masterkey"    fi    writeNewPassword $NewPasswd}#------------------------------------------------------------------------#  Change sysdba password.changeDBAPassword() {    if [ -z "$InteractiveInstall" ]      then        generateNewDBAPassword      else        askUserForNewDBAPassword masterkey    fi}#------------------------------------------------------------------------#  buildUninstallFile#  This will work only for the .tar.gz install and it builds an#  uninstall shell script.  The RPM system, if present, takes care of it's own.buildUninstallFile() {    cd "$origDir"    if [ ! -f manifest.txt ]  # Only exists if we are a .tar.gz install    then        return    fi    cp manifest.txt $FBRootDir/misc    cp -r scripts $FBRootDir/misc/    cp scripts/tarMainUninstall.sh $FBRootDir/bin/uninstall.sh}#------------------------------------------------------------------------# Remove if only a linkremoveIfOnlyAlink() {	Target=$1    if [ -L $Target ]    then        rm -f $Target    fi}#------------------------------------------------------------------------# re-link new file only if target is a link or missingsafeLink() {	Source=$1	Target=$2		removeIfOnlyAlink $Target    if [ ! -e $Target ]    then        ln -s $Source $Target    fi}#------------------------------------------------------------------------#  createLinksForBackCompatibility#  Create links for back compatibility to InterBase and Firebird1.0 #  linked systems.createLinksForBackCompatibility() {    # These two links are required for compatibility with existing ib programs    # If the program had been linked with libgds.so then this link is required    # to ensure it loads the fb equivalent.  Eventually these should be     # optional and in a seperate rpm install.  MOD 7-Nov-2002.	if [ "$1" ]	then		# Use library name from parameter		newLibrary=$FBRootDir/lib/$1	else	    # Use DefaultLibrary, set by appropriate install library    	newLibrary=$FBRootDir/lib/$DefaultLibrary.so	fi	safeLink $newLibrary /usr/lib/libgds.so	safeLink $newLibrary /usr/lib/libgds.so.0}#------------------------------------------------------------------------#  removeLinksForBackCompatibility#  Remove links for back compatibility to InterBase and Firebird1.0 #  linked systems.removeLinksForBackCompatibility() {    removeIfOnlyAlink /usr/lib/libgds.so    removeIfOnlyAlink /usr/lib/libgds.so.0}#------------------------------------------------------------------------#  For security reasons most files in firebird installation are#  root-owned and world-readable(executable) only (including firebird).#  For some files RunUser (firebird) must have write access - #  lock and log for examples.MakeFileFirebirdWritable() {    FileName=$1    chown $RunUser:$RunUser $FileName    chmod 0644 $FileName}#------------------------------------------------------------------------#  Set correct permissions for $FbRoot/doc treefixDocPermissions() {	cd $FBRootDir	for i in `find doc -print`; do		chown root:root $i		if [ -d $i ]; then			chmod 0755 $i		else			chmod 0644 $i		fi	done}#------------------------------------------------------------------------# Run process and check statusrunAndCheckExit() {    Cmd=$*    $Cmd    ExitCode=$?    if [ $ExitCode -ne 0 ]    then        echo "Install aborted: The command $Cmd "        echo "                 failed with error code $ExitCode"        exit $ExitCode    fi}#------------------------------------------------------------------------#  Display message if this is being run interactively.displayMessage() {    msgText=$1    if [ ! -z "$InteractiveInstall" ]    then        echo $msgText    fi}#------------------------------------------------------------------------#  Archive any existing prior installed files.#  The 'cd' stuff is to avoid the "leading '/' removed message from tar.#  for the same reason the DestFile is specified without the leading "/"

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品卡一卡二卡三卡四在线| 国产精品毛片无遮挡高清| 久久亚洲欧美国产精品乐播| 亚洲丝袜另类动漫二区| 热久久久久久久| 99精品国产91久久久久久| 欧美一个色资源| 亚洲成人av在线电影| 成人免费高清视频| 26uuu精品一区二区| 日韩精品福利网| 91丨porny丨首页| 国产日韩欧美电影| 九九热在线视频观看这里只有精品 | 一区二区三区视频在线观看| 国内精品久久久久影院薰衣草 | 欧美精品一区二区三区蜜桃视频| 亚洲一区二区三区自拍| caoporn国产精品| 国产亲近乱来精品视频 | 国产香蕉久久精品综合网| 日韩二区三区四区| 欧美电影在线免费观看| 亚洲一区二区三区自拍| 色综合天天天天做夜夜夜夜做| 国产精品免费网站在线观看| 成人免费毛片嘿嘿连载视频| 国产欧美一区二区三区鸳鸯浴| 国产尤物一区二区在线| 精品日韩一区二区| 精品一区二区三区蜜桃| 久久亚洲精华国产精华液 | 天天操天天干天天综合网| 欧美最新大片在线看| 亚洲美腿欧美偷拍| 欧美手机在线视频| 亚洲第一主播视频| 欧美二区在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 7777精品伊人久久久大香线蕉超级流畅 | 蜜桃免费网站一区二区三区| 日韩三级中文字幕| 极品少妇xxxx精品少妇偷拍| www久久精品| 成人小视频免费观看| 亚洲码国产岛国毛片在线| 在线观看三级视频欧美| 天天综合网天天综合色| 日韩久久免费av| 国产91精品久久久久久久网曝门| 亚洲欧洲在线观看av| 欧亚一区二区三区| 美国欧美日韩国产在线播放| 国产日韩欧美不卡在线| 欧美在线免费播放| 免费在线观看日韩欧美| 国产精品欧美一级免费| 欧美性大战久久久久久久蜜臀| 日本aⅴ免费视频一区二区三区| 久久久久久夜精品精品免费| 99久久伊人网影院| 日韩和欧美一区二区| 久久久激情视频| 欧美性猛交xxxx黑人交| 久久99国产精品久久99果冻传媒| 久久久久久99久久久精品网站| 色94色欧美sute亚洲13| 美女视频一区二区| 亚洲精品国产一区二区三区四区在线 | 99re这里只有精品视频首页| 无吗不卡中文字幕| 国产日韩欧美综合一区| 欧美性做爰猛烈叫床潮| 国产精品一区二区果冻传媒| 亚洲五月六月丁香激情| 国产精品女主播av| 欧美不卡激情三级在线观看| 97精品久久久久中文字幕| 美女看a上一区| 亚洲激情欧美激情| 国产精品视频你懂的| 3d动漫精品啪啪一区二区竹菊| 成人av在线网| 麻豆一区二区在线| 一级特黄大欧美久久久| 国产欧美精品一区aⅴ影院 | 国产精品嫩草99a| 欧美日韩国产一级| 国产69精品久久久久毛片| 午夜精品福利视频网站| 国产精品成人免费| 久久亚洲一区二区三区明星换脸| 欧美色网一区二区| 91亚洲大成网污www| 国产精品一线二线三线精华| 久久国内精品视频| 日本在线不卡视频一二三区| 亚洲一区中文日韩| 亚洲精品一卡二卡| 国产精品欧美久久久久一区二区| 国产午夜亚洲精品理论片色戒 | 中文字幕中文乱码欧美一区二区 | 欧美日本一区二区| 色悠悠久久综合| 成人在线综合网| 精品无码三级在线观看视频| 青草国产精品久久久久久| 亚洲成人精品一区| 亚洲成av人片一区二区| 亚洲国产综合色| 亚洲国产综合91精品麻豆| 一区二区三区精品在线观看| 亚洲综合久久av| 夜夜精品视频一区二区| 亚洲激情男女视频| 亚洲小说欧美激情另类| 亚洲国产日韩综合久久精品| 亚洲一区二区三区中文字幕在线| 一区二区三区在线免费观看| 一区二区理论电影在线观看| 亚洲国产日韩一区二区| 五月婷婷综合网| 日av在线不卡| 久久成人麻豆午夜电影| 国内精品伊人久久久久av一坑| 国产一区二区在线观看免费| 国产成人午夜视频| av激情成人网| 欧美日韩国产一级片| 日韩三级中文字幕| 国产情人综合久久777777| 亚洲女爱视频在线| 一区二区在线看| 日韩国产一区二| 国产精品一区免费视频| 99精品国产一区二区三区不卡| 欧美日韩一区高清| 日韩欧美国产一二三区| 欧美高清在线一区二区| 尤物视频一区二区| 亚洲va国产天堂va久久en| 久久97超碰国产精品超碰| 成人av免费观看| 欧美日韩美少妇| 精品久久久久99| 亚洲欧洲日韩在线| 日韩精品三区四区| 国产白丝网站精品污在线入口| 欧美在线观看一二区| 久久久久久久久久看片| 亚洲免费电影在线| 黄网站免费久久| 色悠悠久久综合| 久久免费精品国产久精品久久久久| 中文字幕va一区二区三区| 亚洲第四色夜色| 懂色av一区二区三区免费观看| 91久久精品日日躁夜夜躁欧美| 91麻豆精品国产无毒不卡在线观看| 久久先锋影音av| 亚洲成人777| 91蜜桃免费观看视频| 日韩精品中午字幕| 亚洲一二三专区| 99久久免费国产| 久久久久国产免费免费| 天堂蜜桃91精品| 国产不卡视频在线播放| 欧美精品精品一区| 亚洲欧美日韩小说| 国产成人在线观看免费网站| 91精品婷婷国产综合久久性色| 国产精品夫妻自拍| 国产精选一区二区三区| 欧美一区二区美女| 亚洲免费在线电影| 成人av影院在线| 久久综合色天天久久综合图片| 亚洲成人免费观看| 91黄色免费看| ●精品国产综合乱码久久久久| 国产黑丝在线一区二区三区| 精品三级av在线| 免费看欧美女人艹b| 在线电影院国产精品| 亚洲精品第一国产综合野| av男人天堂一区| 中文字幕视频一区二区三区久| 国产九九视频一区二区三区| 欧美mv和日韩mv国产网站| 日韩av中文字幕一区二区三区| 色综合久久中文综合久久97| 国产精品美女久久久久久久久久久 | 欧美影片第一页| 亚洲精品网站在线观看| 成人精品在线视频观看| 日本一区二区三区高清不卡| 国产成人精品免费看| 国产欧美日本一区视频| 成人久久久精品乱码一区二区三区|