diff --git a/conf/config_agent.yaml.templete b/conf/config_agent.yaml.templete index f5bc5c9a46e49e896316ae0b9b067567020c6a83..7e2d41eeb50f2e9c6630a003ab54d2d2c46c7dc0 100644 --- a/conf/config_agent.yaml.templete +++ b/conf/config_agent.yaml.templete @@ -6,6 +6,6 @@ PilotGo: log: level: debug driver: file # 可选stdout和file。stdout:输出到终端控制台;file:输出到path下的指定文件。 - path: /var/log/PilotGo/PilotGo-plugin-topology-agent.log + path: /opt/PilotGo/plugin/topology/agent/log/PilotGo/PilotGo-plugin-topology-agent.log max_file: 1 max_size: 10485760 diff --git a/conf/config_server.yaml.templete b/conf/config_server.yaml.templete index 99b14f81806087c92748ba7f1c92370d1db6faa5..0ac752641dfbc5aed1e8f87833a6ff19a269d047 100644 --- a/conf/config_server.yaml.templete +++ b/conf/config_server.yaml.templete @@ -7,7 +7,7 @@ PilotGo: log: level: debug driver: file # 可选stdout和file。stdout:输出到终端控制台;file:输出到path下的指定文件。 - path: /var/log/PilotGo/PilotGo-plugin-topology-server.log + path: /opt/PilotGo/plugin/topology/server/log/PilotGo/PilotGo-plugin-topology-server.log max_file: 1 max_size: 10485760 arangodb: diff --git a/scripts/PilotGo-plugin-topology.spec b/scripts/PilotGo-plugin-topology.spec index d266b87a41e7086cd272ab3452f13fdbaea74cdc..369b9fc7ef5648fcde0ce82fe9b0147daec50841 100644 --- a/scripts/PilotGo-plugin-topology.spec +++ b/scripts/PilotGo-plugin-topology.spec @@ -43,21 +43,21 @@ GO111MODULE=on go build -mod=vendor -o PilotGo-plugin-topology-agent main.go %install # server -install -D -m 0755 server/PilotGo-plugin-topology-server %{buildroot}%{_bindir}/PilotGo-plugin-topology-server +install -D -m 0755 server/PilotGo-plugin-topology-server %{buildroot}/opt/PilotGo/plugin/topology/server/PilotGo-plugin-topology-server install -D -m 0644 conf/config_server.yaml.templete %{buildroot}/opt/PilotGo/plugin/topology/server/config_server.yaml install -D -m 0644 scripts/PilotGo-plugin-topology-server.service %{buildroot}/usr/lib/systemd/system/PilotGo-plugin-topology-server.service # agent -install -D -m 0755 agent/PilotGo-plugin-topology-agent %{buildroot}%{_bindir}/PilotGo-plugin-topology-agent +install -D -m 0755 agent/PilotGo-plugin-topology-agent %{buildroot}/opt/PilotGo/plugin/topology/agent/PilotGo-plugin-topology-agent install -D -m 0644 conf/config_agent.yaml.templete %{buildroot}/opt/PilotGo/plugin/topology/agent/config_agent.yaml install -D -m 0644 scripts/PilotGo-plugin-topology-agent.service %{buildroot}/usr/lib/systemd/system/PilotGo-plugin-topology-agent.service %files server -%{_bindir}/PilotGo-plugin-topology-server +/opt/PilotGo/plugin/topology/server/PilotGo-plugin-topology-server /opt/PilotGo/plugin/topology/server/config_server.yaml /usr/lib/systemd/system/PilotGo-plugin-topology-server.service %files agent -%{_bindir}/PilotGo-plugin-topology-agent +/opt/PilotGo/plugin/topology/agent/PilotGo-plugin-topology-agent /opt/PilotGo/plugin/topology/agent/config_agent.yaml /usr/lib/systemd/system/PilotGo-plugin-topology-agent.service