From 431e14cdf0720b96c671b7490f5cdd25c43a153a Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 27 Feb 2023 17:41:03 +0800 Subject: [PATCH] Update install.sh --- scripts/install.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 98f5b680..cdf434f6 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -18,23 +18,6 @@ Show_Help(){ " } -# r:repository; i:init -while getopts ":r:"":i:" opt -do - case $opt in - r) - repo_name=$OPTARG;; - i) - repo_init=$OPTARG - ;; - ?) - echo "no repository" - exit 1;; - esac -done -echo $repo_name -echo $repo_init - echo "Pre-installation is starting, please wait for 1-3 minutes..." # OracleLinux need install oaclelinux-developer-release-e* oracle-nodejs-release-e* oracle-epel-release-e* in Image before this script @@ -70,6 +53,23 @@ fi sudo echo "Pre-installation has beend completed" +# r:repository; i:init +while getopts ":r:"":i:" opt +do + case $opt in + r) + repo_name=$OPTARG;; + i) + repo_init=$OPTARG + ;; + ?) + echo "no repository" + exit 1;; + esac +done +echo $repo_name +echo $repo_init + cd /tmp rm -rf stackhub sudo git clone --depth=1 https://github.com/Websoft9/stackhub.git