Skip to content
Snippets Groups Projects
Commit f618f92a authored by root's avatar root
Browse files

update remote

parent 4783a8ee
No related merge requests found
#!/bin/bash
remote_command="cd ~; \
host_list="src/hostlist.txt"
command1="cd ~; \
which git &>/dev/null || yum install -y git &>/dev/null; \
git -C .mysetting pull || git clone https://code.ihep.ac.cn/zhangxuantong/mysetting.git .mysetting; \
cd .mysetting; \
source bootstrap.sh git;"
host_list="src/hostlist.txt"
command2="yum upgrade -y --noplugins --disablerepo fts3-el9"
command3="cd ~; \
which git &>/dev/null || yum install -y git &>/dev/null; \
git -C node-exporter pull || git clone https://code.ihep.ac.cn/grid-services/monitoring/node-exporter.git node-exporter; \
cd node-exporter; \
source ./install.sh;"
case $1 in
update)
remote_command=$command2
;;
monitor)
remote_command=$command3
;;
*)
remote_command=$command1
;;
esac
./tools/firewall-update.sh $host_list
for remote_host in $(cat src/hostlist.txt); do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment