lot_manager/bash/git_update.sh

11 lines
280 B
Bash
Raw Normal View History

2023-12-02 10:53:31 +08:00
#!/bin/bash
set -e
# git更新
2023-12-02 11:24:32 +08:00
git pull origin master --force
2023-12-02 10:53:31 +08:00
# 配置文件复制到supervisor管理
2023-12-07 15:51:37 +08:00
cp -r ../conf/common/*.conf /etc/supervisor/conf.d/
cp -r ../conf/var/$device_name/*.conf /etc/supervisor/conf.d/
2023-12-02 10:53:31 +08:00
# 更新配置文件
supervisorctl reread
supervisorctl update