diff options
Diffstat (limited to 'tmp')
-rwxr-xr-x | tmp/post_upgrade_command.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php index cf920f9..a80a6f0 100755 --- a/tmp/post_upgrade_command.php +++ b/tmp/post_upgrade_command.php @@ -19,4 +19,9 @@ if($g['platform'] == "pfSense") touch("/conf/needs_package_sync"); + $files_to_process = split("\n", file_get_contents("/etc/pfSense.obsoletedfiles")); + foreach($files_to_process as $filename) + if(file_exists($filename)) + exec("rm $filename"); + ?>
\ No newline at end of file |