#!/bin/bash major_ver=8 minor_ver=2 php_version="${major_ver}${minor_ver}" altdir="/opt/alt/php${php_version}" _prefix='/usr' _sbindir="${_prefix}/sbin" [ -x /usr/bin/cl-linksafe-apply-group ] && /usr/bin/cl-linksafe-apply-group alt-php${php_version}-fpm || : chcon -t httpd_exec_t ${altdir}${_sbindir}/php-fpm 2>/dev/null || :