diff --git a/AutoPing.sh b/AutoPing.sh index 02290ec..8d7cb6f 100644 --- a/AutoPing.sh +++ b/AutoPing.sh @@ -91,9 +91,9 @@ configureUb() { timedatectl set-timezone Asia/Shanghai #Agent mkdir -p /var/monitor_agent - wget $origin/Agent/agentMain.jar -O /var/monitor_agent - wget $origin/Agent/conf -O /var/monitor_agent - wget $origin/Agent/AgentRestart.sh -O /root + wget $origin/Agent/agentMain.jar -P /var/monitor_agent + wget $origin/Agent/conf -P /var/monitor_agent + wget $origin/Agent/AgentRestart.sh -P /root chmod 755 -R /var/monitor_agent export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 /root/AgentRestart.sh @@ -141,9 +141,9 @@ configureCe() { timedatectl set-timezone Asia/Shanghai #Agent mkdir -p /var/monitor_agent - wget $origin/Agent/agentMain.jar -O /var/monitor_agent - wget $origin/Agent/conf -O /var/monitor_agent - wget $origin/Agent/AgentRestart.sh -O /root + wget $origin/Agent/agentMain.jar -P /var/monitor_agent + wget $origin/Agent/conf -P /var/monitor_agent + wget $origin/Agent/AgentRestart.sh -P /root chmod 755 -R /var/monitor_agent export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk /root/AgentRestart.sh