honors os release version in centos

This commit is contained in:
Tobias Herre 2023-10-31 17:22:18 +01:00
parent b664604535
commit 2733ab9e7e
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ classes:
commands:
install_yum_repo::
"wget"
args => "-qO /etc/yum.repos.d/rspamd.repo https://rspamd.com/rpm-stable/centos-8/rspamd.repo && rpm --import https://rspamd.com/rpm-stable/gpg.key && yum update -y",
args => "-qO /etc/yum.repos.d/rspamd.repo https://rspamd.com/rpm-stable/centos-$(sys.os_version_major)/rspamd.repo && rpm --import https://rspamd.com/rpm-stable/gpg.key && yum update -y",
contain => wmde_cmd_useshell;