Skip to content

Commit

Permalink
add -e to findmnt
Browse files Browse the repository at this point in the history
  • Loading branch information
erulabs committed Jul 28, 2022
1 parent f84366e commit 14d20f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19
20
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func diskStats(w http.ResponseWriter, req *http.Request) {
responseData.K3sUsage = strings.Split(shell("df", strings.Split("/var/lib/rancher/k3s/", " ")), "\n")
responseData.K3sStorageUsage = strings.Split(shell("du", strings.Split("-b --max-depth=1 /var/lib/rancher/k3s/storage/", " ")), "\n")
responseData.K3sVersion = shell("k3s", strings.Split("--version", " "))
responseData.MountPoints = shell("findmnt", strings.Split("-s -J", " "))
responseData.MountPoints = shell("findmnt", strings.Split("-s -J -e", " "))
responseData.Lvs = shell("lvs", strings.Split("--reportformat json --units=b", " "))
responseData.Pvs = shell("pvs", strings.Split("--reportformat json --units=b", " "))

Expand Down

0 comments on commit 14d20f2

Please sign in to comment.