23 lines
1.0 KiB
Bash
23 lines
1.0 KiB
Bash
if [ ! -f "/etc/WebV2/mainvar.list" ] ; then echo 'This system is not yet setup, please run the main installer first' && exit ; fi
|
|
source /etc/WebV2/mainvar.list
|
|
if [ -z $shortdist ] ; then source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/MicroOSDetect.sh) ; fi
|
|
|
|
if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist" = "deb10" ] || [ "$shortdist" = "deb11" ] ; 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/WebV2/phpvar.list
|
|
done |