Merge "Fix reboot on fedora like nodes"
This commit is contained in:
commit
b314d07e34
|
@ -137,6 +137,8 @@ function install_apache_wsgi {
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
sudo rm -f /etc/httpd/conf.d/000-*
|
sudo rm -f /etc/httpd/conf.d/000-*
|
||||||
install_package httpd python3-mod_wsgi
|
install_package httpd python3-mod_wsgi
|
||||||
|
# rpm distros dont enable httpd by default so enable it to support reboots.
|
||||||
|
sudo systemctl enable httpd
|
||||||
# For consistency with Ubuntu, switch to the worker mpm, as
|
# For consistency with Ubuntu, switch to the worker mpm, as
|
||||||
# the default is event
|
# the default is event
|
||||||
sudo sed -i '/mod_mpm_prefork.so/s/^/#/g' /etc/httpd/conf.modules.d/00-mpm.conf
|
sudo sed -i '/mod_mpm_prefork.so/s/^/#/g' /etc/httpd/conf.modules.d/00-mpm.conf
|
||||||
|
|
|
@ -36,6 +36,12 @@ function fixup_fedora {
|
||||||
# Disable selinux to avoid configuring to allow Apache access
|
# Disable selinux to avoid configuring to allow Apache access
|
||||||
# to Horizon files (LP#1175444)
|
# to Horizon files (LP#1175444)
|
||||||
if selinuxenabled; then
|
if selinuxenabled; then
|
||||||
|
#persit selinux config across reboots
|
||||||
|
cat << EOF | sudo tee /etc/selinux/config
|
||||||
|
SELINUX=permissive
|
||||||
|
SELINUXTYPE=targeted
|
||||||
|
EOF
|
||||||
|
# then disable at runtime
|
||||||
sudo setenforce 0
|
sudo setenforce 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue