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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user