update argument pro or cloud in bash shell
This commit is contained in:
parent
6985dd5104
commit
f7f3c83736
|
@ -59,7 +59,7 @@ sudo apt-get install -y apache2
|
|||
cd /var/www
|
||||
sudo chmod -R 0777 html
|
||||
cd html
|
||||
if [ "$s1"= pro ]
|
||||
if [ "$1" = pro ]
|
||||
then git clone -b dev http://gitea.beetai.com/dongpd/BiFace_Server_Lite
|
||||
else git clone -b cloud http://gitea.beetai.com/dongpd/BiFace_Server_Lite
|
||||
fi
|
||||
|
|
|
@ -17,7 +17,7 @@ cd /var/www
|
|||
sudo chmod -R 0777 html
|
||||
cd html
|
||||
sudo rm -rf BiFace_Server_Lite
|
||||
if [ "$s1"= pro ]
|
||||
if [ "$1" = pro ]
|
||||
then git clone -b dev http://gitea.beetai.com/dongpd/BiFace_Server_Lite
|
||||
else git clone -b cloud http://gitea.beetai.com/dongpd/BiFace_Server_Lite
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user