mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-16 18:35:01 -06:00
Handle selinux failure
Ignore errors if setsebool fails and print a warning.
This commit is contained in:
parent
2703be51c8
commit
263fba1468
@ -554,7 +554,16 @@ def main():
|
||||
|
||||
if selinux:
|
||||
# Allow apache to connect to the turbogears web gui
|
||||
run(["/usr/sbin/setsebool", "-P", "httpd_can_network_connect", "true"])
|
||||
# This can still fail even if selinux is enabled
|
||||
try:
|
||||
run(["/usr/sbin/setsebool", "-P", "httpd_can_network_connect", "true"])
|
||||
except:
|
||||
print "WARNING: could not set selinux boolean httpd_can_network_connect to true."
|
||||
print "The web interface may not function correctly until this boolean is"
|
||||
print "successfully change with the command:"
|
||||
print " /usr/sbin/setsebool -P httpd_can_network_connect true"
|
||||
print "Try updating the policycoreutils and selinux-policy packages."
|
||||
pass
|
||||
|
||||
# Start the web gui
|
||||
run(["/sbin/service", "ipa-webgui", "start"])
|
||||
|
Loading…
Reference in New Issue
Block a user