Updated nginx script for Ubuntu Jammy and PHP 8.1
This commit is contained in:
parent
e7c098eef8
commit
824270fc93
|
|
@ -15,7 +15,9 @@ verbose "Installing the web server"
|
||||||
if [ ."$cpu_architecture" = ."arm" ]; then
|
if [ ."$cpu_architecture" = ."arm" ]; then
|
||||||
#Pi2 and Pi3 Raspbian
|
#Pi2 and Pi3 Raspbian
|
||||||
#Odroid
|
#Odroid
|
||||||
if [ ."$os_codename" = ."focal" ]; then
|
if [ ."$os_codename" = ."jammy" ]; then
|
||||||
|
php_version=8.1
|
||||||
|
elif [ ."$os_codename" = ."focal" ]; then
|
||||||
php_version=7.4
|
php_version=7.4
|
||||||
else
|
else
|
||||||
php_version=5.6
|
php_version=5.6
|
||||||
|
|
@ -41,6 +43,9 @@ fi
|
||||||
if [ ."$php_version" = ."7.4" ]; then
|
if [ ."$php_version" = ."7.4" ]; then
|
||||||
sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.4-fpm.sock;#g'
|
sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.4-fpm.sock;#g'
|
||||||
fi
|
fi
|
||||||
|
if [ ."$php_version" = ."8.1" ]; then
|
||||||
|
sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php8.1-fpm.sock;#g'
|
||||||
|
fi
|
||||||
ln -s /etc/nginx/sites-available/fusionpbx /etc/nginx/sites-enabled/fusionpbx
|
ln -s /etc/nginx/sites-available/fusionpbx /etc/nginx/sites-enabled/fusionpbx
|
||||||
|
|
||||||
#self signed certificate
|
#self signed certificate
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue