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

📄 sstarinstall.sh

📁 firebird源代码
💻 SH
字号:
#------------------------------------------------------------------------# 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 InteractiveInstallcheckInstallUser# Ok, here we are installing from a CVS treeif [ -e firebird ]   then    ScriptsSrcDir=./firebird/skywalker/install    ( $ScriptsSrcDir/super/SSpreinstall.sh )    cp $ScriptsSrcDir/misc/README interbase    for i in SSchangeRunUser.sh SSrestoreRootRunUser.sh changeDBAPassword.sh      do        cp $ScriptsSrcDir/misc/$i interbase/bin/$i        chmod ugo=rx interbase/bin/$i      done    ($ScriptsSrcDir/super/SSinstall.sh)    ($ScriptsSrcDir/super/SSpostinstall.sh)fi# Here we are installing from a install tar.gz fileif [ -e scripts ]  then    echo "Extracting install data"    runAndCheckExit "tar -xzf interbase.tar.gz"    (./scripts/SSpreinstall.sh)    (./scripts/SSinstall.sh)    (./scripts/SSpostinstall.sh)    rm -rf interbasefiecho "Install completed"

⌨️ 快捷键说明

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