From 5d8c7db8273ca7bda94245b900e3d75e8638ae11 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 8 Sep 2008 22:08:56 +0000 Subject: Remove obsoleted files after upgrade --- tmp/post_upgrade_command.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tmp') 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 -- cgit v1.1