mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 09:20:20 +08:00
Update install.sh
This commit is contained in:
parent
0533563502
commit
431e14cdf0
@ -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..."
|
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
|
# 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"
|
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
|
cd /tmp
|
||||||
rm -rf stackhub
|
rm -rf stackhub
|
||||||
sudo git clone --depth=1 https://github.com/Websoft9/stackhub.git
|
sudo git clone --depth=1 https://github.com/Websoft9/stackhub.git
|
||||||
|
Loading…
Reference in New Issue
Block a user