26 lines
1.3 KiB
Bash
26 lines
1.3 KiB
Bash
#!/bin/bash
|
|
if [ "$1" = cloud ]
|
|
then
|
|
echo "================================ install serverlite cloud ============================="
|
|
cd /var/www/html
|
|
sudo rm -rf BiFace_Server_Lite
|
|
git clone -b cloud http://gitea.beetai.com/dongpd/BiFace_Server_Lite
|
|
sudo chmod -R 0777 /var/www/html/BiFace_Server_Lite/runtime /var/www/html/BiFace_Server_Lite/web/assets /var/www/html/BiFace_Server_Lite/db /var/www/html/BiFace_Server_Lite/web/data/uploads
|
|
elif [ "$1" = pro ]
|
|
then
|
|
echo "================================ install serverlite pro ==============================="
|
|
cd /var/www/html
|
|
sudo rm -rf BiFace_Server_Lite
|
|
git clone -b litepro_dev http://gitea.beetai.com/dongpd/BiFace_Server_Lite
|
|
sudo chmod -R 0777 /var/www/html/BiFace_Server_Lite/runtime /var/www/html/BiFace_Server_Lite/web/assets /var/www/html/BiFace_Server_Lite/db /var/www/html/BiFace_Server_Lite/web/data/uploads
|
|
else
|
|
echo "================================ update serverlite pro ==============================="
|
|
echo "Enter the tags serverlite"
|
|
read type
|
|
cd /var/www/html/BiFace_Server_Lite
|
|
git fetch -v
|
|
git checkout tags/$type
|
|
# git pull origin litepro_dev
|
|
fi
|
|
echo "================================ update serverlite done!!! ==============================="
|
|
pm2 reload all |