summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-18 11:25:05 +0000
committerErmal <eri@pfsense.org>2014-02-18 11:25:53 +0000
commitb6584d176b18fbe4ee76d5a7e216c5b7702d49f0 (patch)
tree45012cde1a0372222e19d1b1e3d942e3f8c8d78b /etc
parent33d1b241f1a32678b21de2d8750d8f028f562f06 (diff)
downloadpfsense-b6584d176b18fbe4ee76d5a7e216c5b7702d49f0.zip
pfsense-b6584d176b18fbe4ee76d5a7e216c5b7702d49f0.tar.gz
Do not do any operations on system libraries. Nowdays pbis are used and those do not break things by definition
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pkg-utils.inc27
1 files changed, 2 insertions, 25 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index e8c0549..d5f3303 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -361,19 +361,6 @@ function uninstall_package($pkg_name) {
global $config, $static_output;
global $builder_package_install;
- // Back up /usr/local/lib libraries first if
- // not running from the builder code.
- // also take into account rrd binaries
- if(!$builder_package_install) {
- if(!file_exists("/tmp/pkg_libs.tgz")) {
- $static_output .= "Backing up libraries... ";
- update_output_window($static_output);
- 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";
- }
- }
-
$id = get_pkg_id($pkg_name);
if ($id >= 0) {
stop_service(get_pkg_internal_name($config['installedpackages']['package'][$id]));
@@ -399,18 +386,8 @@ function uninstall_package($pkg_name) {
}
delete_package_xml($pkg_name);
- // Restore libraries that we backed up if not
- // running from the builder code.
- if(!$builder_package_install) {
- $static_output .= "Cleaning up... ";
- update_output_window($static_output);
- 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");
- $static_output .= gettext("done.") . "\n";
- update_output_window($static_output);
- }
+ $static_output .= gettext("done.") . "\n";
+ update_output_window($static_output);
}
function force_remove_package($pkg_name) {
OpenPOWER on IntegriCloud