Quiet down the selinux check.
This commit is contained in:
parent
591f65c982
commit
0d2d9e55f5
4
pungi
4
pungi
@ -34,7 +34,9 @@ def main():
|
||||
|
||||
if opts.do_all or opts.do_buildinstall:
|
||||
try:
|
||||
selinux = subprocess.Popen('/usr/sbin/getenforce', stdout=subprocess.PIPE).communicate()[0].strip('\n')
|
||||
selinux = subprocess.Popen('/usr/sbin/getenforce',
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=open('/dev/null', 'w')).communicate()[0].strip('\n')
|
||||
if selinux == 'Enforcing':
|
||||
print >> sys.stdout, "WARNING: SELinux is enforcing. This may lead to a compose with selinux disabled."
|
||||
print >> sys.stdout, "Consider running with setenforce 0."
|
||||
|
Loading…
Reference in New Issue
Block a user