update argument pro or cloud in bash shell
This commit is contained in:
parent
642e68c20d
commit
7866a03dfe
|
@ -59,7 +59,10 @@ sudo apt-get install -y apache2
|
||||||
cd /var/www
|
cd /var/www
|
||||||
sudo chmod -R 0777 html
|
sudo chmod -R 0777 html
|
||||||
cd html
|
cd html
|
||||||
git clone http://gitea.beetai.com/dongpd/BiFace_Server_Lite.git
|
if [ "$s1"= 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
|
||||||
sudo chmod -R 0777 BiFace_Server_Lite
|
sudo chmod -R 0777 BiFace_Server_Lite
|
||||||
sudo apt-get install -y libapache2-mod-php php php-common php-curl php-dev php-gd php-pear php-imagick php-mysql php-xsl php-sqlite3 php-zip
|
sudo apt-get install -y libapache2-mod-php php php-common php-curl php-dev php-gd php-pear php-imagick php-mysql php-xsl php-sqlite3 php-zip
|
||||||
echo "
|
echo "
|
||||||
|
@ -112,5 +115,7 @@ sudo apt install -y npm
|
||||||
cd BiFace_Server_Config_API
|
cd BiFace_Server_Config_API
|
||||||
npm install
|
npm install
|
||||||
sudo bash /etc/rc.local
|
sudo bash /etc/rc.local
|
||||||
|
cd /var/www/html/BiFace_Server_Lite
|
||||||
|
sudo chmod 0777 db/app.db
|
||||||
echo "================================ setup serverlite done! ================================"
|
echo "================================ setup serverlite done! ================================"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -17,12 +17,17 @@ cd /var/www
|
||||||
sudo chmod -R 0777 html
|
sudo chmod -R 0777 html
|
||||||
cd html
|
cd html
|
||||||
sudo rm -rf BiFace_Server_Lite
|
sudo rm -rf BiFace_Server_Lite
|
||||||
git clone http://gitea.beetai.com/dongpd/BiFace_Server_Lite.git
|
if [ "$s1"= 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
|
||||||
sudo chmod -R 0777 BiFace_Server_Lite
|
sudo chmod -R 0777 BiFace_Server_Lite
|
||||||
cd /root
|
cd /root
|
||||||
sudo rm -rf BiFace_Server_Config_API
|
sudo rm -rf BiFace_Server_Config_API
|
||||||
git clone http://gitea.beetai.com/dongpd/BiFace_Server_Config_API.git
|
git clone http://gitea.beetai.com/dongpd/BiFace_Server_Config_API.git
|
||||||
cd BiFace_Server_Config_API
|
cd BiFace_Server_Config_API
|
||||||
#npm install
|
#npm install
|
||||||
|
cd /var/www/html/BiFace_Server_Lite
|
||||||
|
sudo chmod 0777 db/app.db
|
||||||
echo "================================ update serverlite done!!! ==============================="
|
echo "================================ update serverlite done!!! ==============================="
|
||||||
reboot
|
reboot
|
||||||
|
|
Loading…
Reference in New Issue
Block a user