21 lines
831 B
Bash
21 lines
831 B
Bash
if [ ! -f "/etc/ICTM/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
|
|
|
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
|
|
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 |