summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-25 16:46:40 -0300
committerRenato Botelho <renato@netgate.com>2015-09-25 16:46:59 -0300
commitacce84046a0cf038620500cf0890f01542d28e9b (patch)
treed6a5b878bb3862a626a44e8422775de1fa112567 /src/usr/local
parentab56095bdb9aedbf5c3c577853c4244017879858 (diff)
downloadpfsense-acce84046a0cf038620500cf0890f01542d28e9b.zip
pfsense-acce84046a0cf038620500cf0890f01542d28e9b.tar.gz
Cleanup cache and stale packages after install/delete
Diffstat (limited to 'src/usr/local')
-rwxr-xr-xsrc/usr/local/sbin/pfSense-upgrade2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade
index 7860bd3..c30f257 100755
--- a/src/usr/local/sbin/pfSense-upgrade
+++ b/src/usr/local/sbin/pfSense-upgrade
@@ -328,6 +328,7 @@ pkg_install() {
fi
_exec "pkg ${_cmd} ${_pkg_name}" "${_msg} ${_pkg_name}"
+ _exec "pkg clean" "Cleaning up cache" mute ignore_result
}
pkg_delete() {
@@ -344,6 +345,7 @@ pkg_delete() {
fi
_exec "pkg delete ${_pkg_name}" "Removing ${_pkg_name}"
+ _exec "pkg autoremove" "Removing stale packages" mute ignore_result
}
pid_file="/var/run/$(basename $0).pid"
OpenPOWER on IntegriCloud