prepare socket name for nginx to work with php5-fpm or php7.0-fpm (recommited)
This commit is contained in:
parent
74d33ea08d
commit
ec872f5b68
|
|
@ -50,6 +50,12 @@ fi
|
|||
|
||||
#enable fusionpbx nginx config
|
||||
cp nginx/fusionpbx /etc/nginx/sites-available/fusionpbx
|
||||
#prepare socket name
|
||||
if [ .$USE_PHP5_PACKAGE = .true ]; then
|
||||
sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php5-fpm.sock;#g'
|
||||
else
|
||||
sed -i /etc/nginx/sites-available/fusionpbx -e 's#unix:.*;#unix:/var/run/php/php7.0-fpm.sock;#g'
|
||||
fi
|
||||
ln -s /etc/nginx/sites-available/fusionpbx /etc/nginx/sites-enabled/fusionpbx
|
||||
|
||||
#self signed certificate
|
||||
|
|
|
|||
Loading…
Reference in New Issue