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

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

?? postuninstall.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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩成人一区二区| 精品一区二区av| 蜜臀av一区二区三区| 国产精品一级片在线观看| 色婷婷国产精品久久包臀| 欧美成人午夜电影| 一个色在线综合| 成人天堂资源www在线| 欧美猛男超大videosgay| 日韩一区中文字幕| 国产成人亚洲综合a∨猫咪| 欧美一区二区三区视频在线观看| 精品99久久久久久| 欧美a一区二区| 精品视频一区二区不卡| 亚洲欧美日韩国产手机在线| 国产成人综合在线| 久久综合久久综合久久| 日本成人超碰在线观看| 精品视频一区二区不卡| 亚洲免费在线视频一区 二区| 国产成人亚洲综合a∨婷婷图片| 日韩一区二区精品在线观看| 天天综合天天做天天综合| 99久久久国产精品| 国产精品久久久久久久久果冻传媒| 狠狠色丁香久久婷婷综| 欧美xxxxxxxx| 美女脱光内衣内裤视频久久影院| 欧美精品久久天天躁| 亚洲永久免费视频| 色欧美乱欧美15图片| 综合欧美一区二区三区| 91亚洲国产成人精品一区二区三| 国产精品护士白丝一区av| 国产精品一区二区你懂的| 久久综合九色综合97_久久久| 蜜桃av噜噜一区| 精品成人一区二区| 国产伦精一区二区三区| 久久久亚洲精华液精华液精华液| 精品一二线国产| 欧美高清一级片在线观看| 国产成人免费av在线| 国产精品电影院| 欧美做爰猛烈大尺度电影无法无天| 欧美va亚洲va在线观看蝴蝶网| 亚洲精品菠萝久久久久久久| 色婷婷一区二区三区四区| 依依成人精品视频| 欧美日韩精品三区| 久久精品久久综合| 欧美国产一区二区| 色呦呦一区二区三区| 亚洲午夜久久久久久久久电影院| 制服丝袜亚洲色图| 国产一区999| 亚洲免费高清视频在线| 欧美老肥妇做.爰bbww视频| 美女性感视频久久| 国产精品久久久久久久久晋中| 91国产免费看| 美腿丝袜亚洲综合| 国产精品欧美久久久久一区二区| 91精彩视频在线| 另类综合日韩欧美亚洲| 久久精品在这里| 欧美性色aⅴ视频一区日韩精品| 国产精品天美传媒沈樵| 日本道精品一区二区三区 | 99国产精品视频免费观看| 亚洲欧美国产三级| 日韩免费一区二区| 色综合天天综合狠狠| 免费不卡在线视频| 亚洲精品视频免费看| 日韩一区二区在线看片| 色综合色综合色综合| 国内精品不卡在线| 亚洲国产综合人成综合网站| 欧美精品一区二区三区视频| 色综合天天视频在线观看| 久久国内精品视频| 亚洲国产精品人人做人人爽| 国产欧美日韩麻豆91| 51久久夜色精品国产麻豆| 99久久99久久综合| 久久激情五月婷婷| 五月天国产精品| 亚洲欧美综合在线精品| 久久久久久久久久久久久女国产乱| 日韩国产欧美三级| 久久久噜噜噜久久中文字幕色伊伊| 色综合天天天天做夜夜夜夜做| 久久精品国产99国产| 亚洲电影第三页| 综合久久久久综合| 国产网站一区二区| 亚洲精品一区二区三区蜜桃下载| 欧美日韩中文字幕精品| 色综合天天天天做夜夜夜夜做| 国产成人亚洲综合a∨婷婷| 青草国产精品久久久久久| 亚洲制服欧美中文字幕中文字幕| 国产精品福利一区| 国产欧美一区二区精品忘忧草| 欧美本精品男人aⅴ天堂| 在线不卡免费av| 欧美日本国产视频| 欧美日韩国产一区| 欧美日韩一级二级| 欧美日韩的一区二区| 欧洲在线/亚洲| 欧洲一区二区三区在线| 色婷婷亚洲精品| 一本久道久久综合中文字幕 | 日韩欧美中文字幕制服| 欧美巨大另类极品videosbest | 欧美性大战xxxxx久久久| 91美女在线看| 在线观看亚洲专区| 欧美在线一二三| 欧美日韩国产经典色站一区二区三区| 在线免费亚洲电影| 欧美影院精品一区| 欧美丰满少妇xxxxx高潮对白| 欧美日韩国产综合一区二区三区 | 国内不卡的二区三区中文字幕 | 国产一区二区伦理片| 久久黄色级2电影| 国产呦萝稀缺另类资源| 国产精品一区二区免费不卡| 成人午夜看片网址| 91片在线免费观看| 欧美高清hd18日本| 精品久久一区二区| 国产精品无遮挡| 一区二区三区国产精华| 日本成人在线网站| 国产精华液一区二区三区| 成人h动漫精品一区二区| 91色.com| 日韩欧美国产一二三区| 亚洲国产精品激情在线观看 | 久久精品人人做人人综合| 欧美激情中文字幕一区二区| 亚洲欧美日韩在线| 美女视频一区二区| av在线综合网| 日韩午夜在线观看| 亚洲欧洲日产国码二区| 亚洲福利国产精品| 欧美日韩高清影院| 欧美一区二区三区在线观看视频 | 色欧美片视频在线观看在线视频| 欧美日韩一二三区| 国产清纯在线一区二区www| 亚洲码国产岛国毛片在线| 麻豆精品视频在线观看| a4yy欧美一区二区三区| 欧美色视频在线观看| 久久久国产精品麻豆| 亚洲电影一级片| 成人激情校园春色| 日韩亚洲欧美中文三级| 综合自拍亚洲综合图不卡区| 美腿丝袜在线亚洲一区| 在线观看一区日韩| 中文字幕在线一区| 国内不卡的二区三区中文字幕| 欧美优质美女网站| 国产精品美日韩| 国产资源精品在线观看| 欧美日韩五月天| 亚洲免费观看高清在线观看| 国内精品视频666| 69堂精品视频| 亚洲综合成人网| 欧美日韩一二三区| 日韩美女主播在线视频一区二区三区| 一色屋精品亚洲香蕉网站| 美女网站视频久久| 欧美日韩精品二区第二页| 国产精品大尺度| 国产**成人网毛片九色| 精品国产91九色蝌蚪| 日韩精品电影在线| 欧美三级电影网| 依依成人精品视频| 日本韩国精品在线| 亚洲少妇30p| 99久久精品免费| 国产精品欧美综合在线| 成人亚洲一区二区一| 国产亚洲精品精华液| 国产福利一区二区| 久久免费看少妇高潮| 国产一区二区精品久久| www国产精品av| 国产精品一区二区三区乱码|