if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] ; then # Debian/Ubunbtu Php variables phpPoolDir=/etc/php/${phpver}/fpm/pool.d phpPkgName=php${phpver} phpMainConf=/etc/php/${phpver}/fpm/php.ini phpFPMService=php${phpver}-fpm elif [ "$shortdist" = "el8" ]; then # Centos Php variable phpPoolDir=/etc/opt/remi/php${phpver//.}/php-fpm.d/ phpPkgName=php${phpver//.}-php phpMainConf=/etc/opt/remi/php${phpver//.}/php.ini phpFPMService=php${phpver//.}-php-fpm #Creating Socket directory mkdir -p /var/run/php fi #Storing vars to config for storeme in phpPoolDir phpPkgName phpMainConf phpFPMService; do declare -p $storeme | cut -d ' ' -f 3- >> /etc/ICTM/phpvar.list done