From 21d939b3b2060f6b33170ad39891bce12b7a6b2b Mon Sep 17 00:00:00 2001
From: lhpqaq <657407891@qq.com>
Date: Mon, 9 Dec 2024 23:12:58 +0800
Subject: [PATCH] backtrack user
---
.../resources/stacks/infra/1.0.0/services/grafana/metainfo.xml | 2 +-
.../stack/infra/v1_0_0/grafana/GrafanaServerScript.java | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/bigtop-manager-server/src/main/resources/stacks/infra/1.0.0/services/grafana/metainfo.xml b/bigtop-manager-server/src/main/resources/stacks/infra/1.0.0/services/grafana/metainfo.xml
index 4020b252..1670a9bb 100644
--- a/bigtop-manager-server/src/main/resources/stacks/infra/1.0.0/services/grafana/metainfo.xml
+++ b/bigtop-manager-server/src/main/resources/stacks/infra/1.0.0/services/grafana/metainfo.xml
@@ -28,7 +28,7 @@
Loki, Elasticsearch, InfluxDB, Postgres and many more.
11.4.0
- lhp
+ grafana
diff --git a/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaServerScript.java b/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaServerScript.java
index 8799defa..23209b8d 100644
--- a/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaServerScript.java
+++ b/bigtop-manager-stack/bigtop-manager-stack-infra/src/main/java/org/apache/bigtop/manager/stack/infra/v1_0_0/grafana/GrafanaServerScript.java
@@ -53,8 +53,7 @@ public ShellResult start(Params params) {
configure(params);
GrafanaParams grafanaParams = (GrafanaParams) params;
String cmd = MessageFormat.format(
- "nohup {0}/bin/grafana server --homepath {0} > {0}/nohup.out 2>&1 &",
- grafanaParams.serviceHome());
+ "nohup {0}/bin/grafana server --homepath {0} > {0}/nohup.out 2>&1 &", grafanaParams.serviceHome());
log.info(cmd);
try {
ShellResult shellResult = LinuxOSUtils.sudoExecCmd(cmd, grafanaParams.user());