diff options
author | Ermal <eri@pfsense.org> | 2012-08-01 10:45:28 +0000 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-08-01 12:09:41 -0400 |
commit | 007bb55f89a3d94524d31eb34b619f3184c3c416 (patch) | |
tree | 092aa099f50e2f6040b1959d11f7a142395e8f34 | |
parent | 1032ab47c73871993e34446b84767efd235cfd05 (diff) | |
download | pfsense-007bb55f89a3d94524d31eb34b619f3184c3c416.zip pfsense-007bb55f89a3d94524d31eb34b619f3184c3c416.tar.gz |
Silence tar command to not garble console
-rw-r--r-- | etc/inc/pkg-utils.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 9e8eba4..f8dee3c 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -333,8 +333,8 @@ function uninstall_package($pkg_name) { if(!file_exists("/tmp/pkg_libs.tgz")) { $static_output .= "Backing up libraries... "; update_output_window($static_output); - exec("/usr/bin/tar czPf /tmp/pkg_libs.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'local/lib' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); - exec("/usr/bin/tar czPf /tmp/pkg_bins.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'rrd' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`"); + mwexec("/usr/bin/tar czPf /tmp/pkg_libs.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'local/lib' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`", true); + mwexec("/usr/bin/tar czPf /tmp/pkg_bins.tgz `/bin/cat /etc/pfSense_md5.txt | /usr/bin/grep 'rrd' | /usr/bin/awk '{ print $2 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d')' -f1`", true); $static_output .= "\n"; } } @@ -358,8 +358,8 @@ function uninstall_package($pkg_name) { if(!$builder_package_install) { $static_output .= "Cleaning up... "; update_output_window($static_output); - exec("/usr/bin/tar xzPfk /tmp/pkg_libs.tgz -C /"); - exec("/usr/bin/tar xzPfk /tmp/pkg_bins.tgz -C /"); + mwexec("/usr/bin/tar xzPfk /tmp/pkg_libs.tgz -C /", true); + mwexec("/usr/bin/tar xzPfk /tmp/pkg_bins.tgz -C /", true); @unlink("/tmp/pkg_libs.tgz"); @unlink("/tmp/pkg_bins.tgz"); } |