Change file content check to 'ReadWritePaths'

Updated the check in upgrade.php to look for 'ReadWritePaths' instead of '/etc/freeswitch'.
This commit is contained in:
FusionPBX
2026-05-28 21:04:00 +00:00
committed by GitHub
parent 5063a61d03
commit c9a07b3cd0
+2 -2
View File
@@ -437,8 +437,8 @@
// Get the file contents // Get the file contents
$file_contents = file_get_contents($service_file); $file_contents = file_get_contents($service_file);
// Check if "/etc/freeswitch" exists in the file contents // Check if "ReadWritePaths" exists in the file contents
$file_updated = strpos($file_contents, '/etc/freeswitch') !== false; $file_updated = strpos($file_contents, 'ReadWritePaths') !== false;
// Check if the service file is writable // Check if the service file is writable
$file_writable = is_writable($service_file); $file_writable = is_writable($service_file);