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

📄 tarmaininstall.sh

📁 firebird源代码
💻 SH
字号:
#  Install script for FirebirdSQL database engine#  http://www.firebirdsql.org#------------------------------------------------------------------------# Prompt for response, store result in AnswerAnswer=""AskQuestion() {    Test=$1    DefaultAns=$2    echo -n "${1}"    Answer="$DefaultAns"    read Answer}#------------------------------------------------------------------------# 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 process and check statusrunAndCheckExit() {    Cmd=$*#    echo $Cmd    $Cmd    ExitCode=$?    if [ $ExitCode -ne 0 ]      then        echo "Install aborted: The command $Cmd "        echo "                 failed with error code $ExitCode"        exit    fi}#------------------------------------------------------------------------# Check for a previous install checkInstallUser() {    if [ "`whoami`" != "root" ];      then        echo ""        echo "--- Warning ----------------------------------------------"        echo ""        echo "    You need to be 'root' user to install"        echo ""        exit    fi}#== Main Program ==========================================================InteractiveInstall=1export InteractiveInstallcheckInstallUserecho "Firebird Classic XXXVERSIONXXX Installation"echo ""echo ""AskQuestion "Press Enter to start installation or ^C to abort"# Here we are installing from a install tar.gz fileif [ -e scripts ]  then    echo "Extracting install data"#    runAndCheckExit "tar -xzf buildroot.tar.gz"    runAndCheckExit "./scripts/preinstall.sh"    runAndCheckExit "./scripts/tarinstall.sh"    runAndCheckExit "./scripts/postinstall.sh"#    rm -rf interbasefiecho "Install completed"

⌨️ 快捷键说明

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