#/bin/bash

cd /root/phone

echo "update guanwang phone version"

git pull

if [ $? -ne 0 ]; then
        echo "update guanwang phone version from git failed"
        exit 1
fi

rsync -avzP --delete /root/phone *.*.*.*:/data/website/company/

if [ $? -ne 0 ]; then
        echo "rsync phone dir failed"
        exit 1
fi

echo "phone update success"

cd /root/web

echo "update guanwang web version"

git pull

if [ $? -ne 0 ]; then
        echo "update guanwang web version from git failed"
        exit 1
fi

rsync -avzP --delete /root/web *.*.*.*:/data/website/company/

if [ $? -ne 0 ]; then
        echo "rsync web dir failed"
        exit 1
fi

echo "web update success"

 

相关文章:

  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-01-06
  • 2021-09-23
  • 2021-09-09
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2021-11-22
  • 2021-07-04
  • 2022-12-23
相关资源
相似解决方案