diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-09-08 22:08:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-09-08 22:08:56 +0000 |
commit | 5d8c7db8273ca7bda94245b900e3d75e8638ae11 (patch) | |
tree | 86c70c483e94f4539e9a5eab3c4ab18e4b1e80ff /tmp | |
parent | 643739aef3c5d6feb03136e0ffbbe6197ff156e6 (diff) | |
download | pfsense-5d8c7db8273ca7bda94245b900e3d75e8638ae11.zip pfsense-5d8c7db8273ca7bda94245b900e3d75e8638ae11.tar.gz |
Remove obsoleted files after upgrade
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 |