Skip to content

Commit 49b06fe

Browse files
PMM-7: Fix psmdb pmm client setup (#132)
* PMM-7: Fix psmdb pmm client setup * PMM-7: Fix psmdb pmm client setup * PMM-7: Fix psmdb pmm client setup * PMM-7: Fix psmdb pmm client setup
1 parent d2a11b4 commit 49b06fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pmm_psmdb-pbm_setup/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ RUN if [[ "$PMM_CLIENT_VERSION" == http* ]]; then \
6767
yum update --refresh -y && \
6868
yum -y install pmm-client ; \
6969
else \
70-
yum -y install pmm-client-${PMM_CLIENT_VERSION}-6.el9 ; \
70+
if [[ "$PMM_CLIENT_VERSION" =~ ^([3-9])\.([1-9][0-9]*)\.([0-9]+)$ ]]; then \
71+
yum -y install pmm-client-${PMM_CLIENT_VERSION}-7.el9 ; \
72+
else \
73+
yum -y install pmm-client-${PMM_CLIENT_VERSION}-6.el9 ; \
74+
fi \
7175
fi && \
7276
sed 's/Type=forking/#Type=forking/' -i /usr/lib/systemd/system/mongod.service && \
7377
systemctl enable mongod && \

0 commit comments

Comments
 (0)