Skip to content

Commit f0b0d9b

Browse files
authored
Merge pull request #34 from aws-samples/ubuntu22compat-feature
Fix for compatibility on Ubuntu 22.x OS , thanks @afalzonelab
2 parents 2e8e23f + 9abbf6b commit f0b0d9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

parallelcluster-setup/install-monitoring.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ case "${cfn_node_type}" in
8989
# More info here: https://github.com/vpenso/prometheus-slurm-exporter/blob/master/LICENSE
9090
cd ${monitoring_home}
9191
git clone https://github.com/vpenso/prometheus-slurm-exporter.git
92+
# the export and git config statements below for compatibility on Ubuntu 22.x
93+
export HOME=/root
94+
git config --global --add safe.directory ${monitoring_home}/prometheus-slurm-exporter
9295
sed -i 's/NodeList,AllocMem,Memory,CPUsState,StateLong/NodeList: ,AllocMem: ,Memory: ,CPUsState: ,StateLong:/' prometheus-slurm-exporter/node.go
9396
cd prometheus-slurm-exporter
9497
GOPATH=/root/go-modules-cache HOME=/root go mod download

0 commit comments

Comments
 (0)