Update install.sh

This commit is contained in:
qiaofeng1227 2023-02-27 17:41:03 +08:00 committed by GitHub
parent 0533563502
commit 431e14cdf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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