Update ReadWritePaths to add /usr/share/fusionpbx

This commit is contained in:
FusionPBX
2026-05-28 21:00:51 +00:00
committed by GitHub
parent 5d77c517d7
commit 5063a61d03
+1 -1
View File
@@ -431,7 +431,7 @@
// Update the php-fpm.service file // Update the php-fpm.service file
if (PHP_OS === 'Linux') { if (PHP_OS === 'Linux') {
$php_version = implode('.', array_slice(explode('.', PHP_VERSION), 0, 2)); $php_version = implode('.', array_slice(explode('.', PHP_VERSION), 0, 2));
$line_to_insert = "ReadWritePaths=/tmp /etc/freeswitch /usr/share/freeswitch /var/lib/freeswitch /var/cache/fusionpbx"; $line_to_insert = "ReadWritePaths=/tmp /etc/freeswitch /usr/share/freeswitch /var/lib/freeswitch /usr/share/fusionpbx /var/cache/fusionpbx";
$service_file = "/usr/lib/systemd/system/php".$php_version."-fpm.service"; $service_file = "/usr/lib/systemd/system/php".$php_version."-fpm.service";
if (file_exists($service_file)) { if (file_exists($service_file)) {
// Get the file contents // Get the file contents