Browse Source

Update install.sh

qiaofeng1227 2 years ago
parent
commit
431e14cdf0
1 changed files with 17 additions and 17 deletions
  1. 17 17
      scripts/install.sh

+ 17 - 17
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