#!/bin/bash
echo "====Virsh Agent 停止..."
pkill virsh_agent

echo "====Virsh Agent 卸载..."
rm -rf /bin/virsh_agent

echo "====Virsh Agent 安装..."
wget -O /bin/virsh_agent http://104.37.175.72/virsh_agent

echo "====Virsh Agent 执行权限设置..."
chmod +x /bin/virsh_agent

echo "====Virsh Agent 启动..."
/bin/virsh_agent --daemon

rm -rf ./reinstallvirshagent.sh
echo "====done!"