Skip to content

Commit

Permalink
backtrack user
Browse files Browse the repository at this point in the history
  • Loading branch information
lhpqaq committed Dec 9, 2024
1 parent 41e5394 commit 21d939b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Loki, Elasticsearch, InfluxDB, Postgres and many more.
</desc>
<version>11.4.0</version>
<user>lhp</user>
<user>grafana</user>

<components>
<component>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 21d939b

Please sign in to comment.