Made nginx and php socket configuration variable

This commit is contained in:
2024-07-21 15:15:24 +02:00
parent 52fe56dde9
commit 4fd8df0576
3 changed files with 5 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ if [ -z ${DistoBuilderINT+x} ]; then
#Configure Php-fpm
echo ";Placeholder" > /etc/php$phpVer/php-fpm.d/www.conf
sed -i -e 's/PHPver/'$phpVer'/g' Configs/php.conf
mv Configs/php.conf /etc/php$phpVer/php-fpm.d/mailbackup.conf
printf "[Date]\ndate.timezone = Europe/Amsterdam" >/etc/php$phpVer/conf.d/04_date_timezone.ini
rc-update add php-fpm$phpVer
@@ -75,7 +76,8 @@ rm -f /tmp/olim3.tar.gz /tmp/smc.tar.gz
rc-update add dovecot
rc-update add nginx
if [ -z ${DistoBuilderINT+x} ]; then
if [ -z ${DistoBuilderINT+x} ]; then
sed -i -e 's/PHPver/'$phpVer'/g' /etc/nginx/nginx.conf
service dovecot start
service nginx start
service php-fpm$phpVer start