<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] # 包含提示和確認的菜單 ``` function GetInstallService() { echo "---------------------------------" echo "Select which component you want to install in this machine, you can select mulit -" echo "---------------------------------" echo "1). ALL SERVICES" echo "2). RTC TRAN PROBE" echo "---------------------------------" read -p "Please select the components to install this machine -->" stmp; read -p "you input is $stmp are you sure to go? [yes|no]: -->" yn if [[ $yn =~ ^[y|Y].* ]]; then echo "Starting................................" else exit; fi for items in ${stmp[@]} do case $items in 1) echo "you select install ALL SERVICES component. -->"; . ./install.sh 2>&1 | tee -a install.log ;; 2) echo "you select install RTC TRAN PROBE component. -->"; . ./install_rtc.sh 2>&1 | tee -a install.log ;; *) echo "Error! you give wrong component, so exit"; exit 1; ;; esac done } GetInstallService ``` # 安裝腳本配合位置參數 ``` while getopts ":albri:" opt; do case $opt in a) InitAndCheckEnv echo "+++++++++++++++++++++++++++++Install All Server+++++++++++++++++++++++++++++" InstallAllServer ;; l) echo "Backup (-b)" echo "Restore (-r)" echo "IMServer (-i IM)" echo "WebServer (-i Web)" echo "DBServer (-i DB)" echo "UpLoginServer (-i Login)" ;; b) backup_interactive ;; r) restore_interactive ;; i) InitAndCheckEnv case ${OPTARG} in "IM") echo "Install IM Server" InstallIMServer ;; "Login") echo "Install Login Server" InstallLOGINServer ;; "Web") echo "Install Web Server" InstallWebServer ;; "DB") echo "Install DB Server" InstallDBServer ;; *) echo "+++++++++++++++++++++++++++++僅支持以下服務單獨安裝+++++++++++++++++++++++++++++++++++++" echo "++++++++++++++++++++++++++++++++IM Web DB Login++++++++++++++++++++++++++++++++++++++++" ;; esac ;; \?) echo "+++++++++++++++++++安裝程序僅支持-a -b -r -l -i -h命令+++++++++++++++++++" ;; esac done ``` # $?結果返回值后續操作 > 單命令執行 ``` if [ $? -eq 0 ]; then echo "unzip web_common successed." else echo "Error: unzip web_common failed." return 1 fi ``` > 多級命令執行結果 ``` if [ $? -eq 0 ]; then echo "unzip tb_server successed." modify_tb_server if [ $? -eq 0 ]; then echo "modify tb_server successed." else echo "modify tb_server failed." fi else echo "Error: unzip tb_server failed." return 1 fi ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看