Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Automated] Merge 5.x into master #212

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion templates/linux/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ identify_os() {
# Check for RHEL/CentOS, Fedora, etc.
if command -v rpm >/dev/null && [[ -e /etc/redhat-release ]]; then
os_type=rhel
el_version=$(rpm -qa '(oraclelinux|sl|redhat|centos|fedora)*release(|-server)' --queryformat '%{VERSION}')
el_version=$(rpm -qa '(oraclelinux|sl|redhat|centos|fedora|alma|rocky)*release(|-server)' --queryformat '%{VERSION}')
case $el_version in
9*) os_version=9 ;;
*) error "Detected RHEL or compatible but version ($el_version) is not supported." "$supported" ;;
Expand Down Expand Up @@ -272,6 +272,11 @@ install_php_rhel() {
dnf -y install php php-fpm php-bcmath php-gd php-mbstring php-mysql php-xml php-imap php-ldap php-zip

if [[ -x "$(command -v getenforce)" ]] && [[ "$(getenforce | awk '{ print tolower($0) }')" != "disabled" ]]; then
# Some RHEL (Alma) don't include semanage in the baseos repo.
if [[ ! -x "$(command -v semanage)" ]]; then
dnf -y install policycoreutils-python-utils
fi

semanage fcontext -a -t httpd_var_run_t "${socket_path}"
fi

Expand Down
Loading