diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-13 16:25:48 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-13 16:25:48 +0000 |
commit | 58f130e4070865bc28fa9cb670933cb258c6300d (patch) | |
tree | 9f3fe1fc566b2dfb7d957dd0bdf54b5b9ea94923 /usr | |
parent | 89a0d34ff6e28461f06a9b91e031327c97b7bd14 (diff) | |
download | pfsense-58f130e4070865bc28fa9cb670933cb258c6300d.zip pfsense-58f130e4070865bc28fa9cb670933cb258c6300d.tar.gz |
Make sure that package tarballs and staging areas are removed once all packages are installed.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 5b5a770..8d197a0 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -472,8 +472,14 @@ foreach ($packages_to_install as $id) { fwrite($fd_log, "Package installation completed.\n"); log_error("Package " . $pkgent['name'] . " installation completed successfully."); fwrite($fd_log, "Status window output:\n" . $static_output); + unlink_if_exists("/ } +// Delete all temporary package tarballs and staging areas. +unlink_if_exists("/tmp/apkg_*"); +rmdir_recursive("/var/tmp/instmp*"); + + // close log fclose($fd_log); |