diff --git a/rspamd.cf b/rspamd.cf index c60a0ab..aa1d26b 100644 --- a/rspamd.cf +++ b/rspamd.cf @@ -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;