summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@mpb-geekgod.geekgod.com>2009-06-18 20:27:30 -0400
committerScott Ullrich <sullrich@mpb-geekgod.geekgod.com>2009-06-18 20:27:30 -0400
commit39b7cd07b9467b251ac576e2794e20a9751979b9 (patch)
tree7ce4737f39ade25afbfe8ba5a7a387d5f5860aad /tmp
parenta7f0aadfd239a614d97bef9cc78413a562cb8f33 (diff)
downloadpfsense-39b7cd07b9467b251ac576e2794e20a9751979b9.zip
pfsense-39b7cd07b9467b251ac576e2794e20a9751979b9.tar.gz
Process and remove obsoleted files
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index 91642c3..5f15aca 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -16,8 +16,8 @@
if(file_exists("/usr/local/www/dfuife.cgi"))
unlink("/usr/local/www/dfuife.cgi");
- // Needed for major freebsd upgrades (ex: 6.X -> 7.x)
- //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("/bin/rm $filename");
?> \ No newline at end of file
OpenPOWER on IntegriCloud