Skip to content

Commit 4dea0bc

Browse files
authored
Merge pull request #710 from bastelfreak/docs
[ci skip] document acceptance test helper method
2 parents 6f4023f + a348b7e commit 4dea0bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/support/acceptance/prepare_host.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
def prepare_host
22
if fact('os.family') == 'RedHat'
33
shell('rm -rf /etc/yum.repos.d/Zabbix*.repo; rm -rf /var/cache/yum/x86_64/*/Zabbix*; yum clean all --verbose')
4+
# The CentOS docker image has a yum config that won't install docs, to keep used space low
5+
# zabbix packages their SQL file as doc, we need that for bootstrapping the database
46
if fact('os.release.major').to_i == 7
57
shell('sed -i "/nodocs/d" /etc/yum.conf')
68
end

0 commit comments

Comments
 (0)