diff options
Diffstat (limited to 'tmp/post_upgrade_command.php')
-rwxr-xr-x | tmp/post_upgrade_command.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php index 2285ae8..9a273cf 100755 --- a/tmp/post_upgrade_command.php +++ b/tmp/post_upgrade_command.php @@ -23,7 +23,7 @@ $newslicedir = '/tmp' . $ARGV[1]; setup_serial_port("upgrade", $newslicedir); - $files_to_process = explode("\n", file_get_contents("/etc/pfSense.obsoletedfiles")); + $files_to_process = file("/etc/pfSense.obsoletedfiles"); foreach($files_to_process as $filename) if(file_exists($filename)) exec("/bin/rm -f $filename"); |