]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #2314: remove GZIP env var
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 7 Aug 2019 12:12:10 +0000 (14:12 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 8 Aug 2019 11:18:45 +0000 (13:18 +0200)
...and replace instead with command line argument.
Avoids a deprecation warning.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/API2/VZDump.pm
PVE/VZDump.pm

index 8e4096747e02087b3f9b4bd0502f0ba09439bd7c..c2a6fab466d5035694ebf73b5a4d46f05d9058c0 100644 (file)
@@ -62,9 +62,6 @@ __PACKAGE__->register_method ({
                if defined($param->{$key}) && ($user ne 'root@pam');
        }
 
-       # by default we set --rsyncable for gzip
-       local $ENV{GZIP} = "--rsyncable" if !$ENV{GZIP};
-
        PVE::VZDump::verify_vzdump_parameters($param, 1);
 
        # silent exit if we run on wrong node
index 272f40b80526643f9371dd6e2ca27d20f6ced8c5..39669f49cdee8ba99a9cc7a2aa065e7f8cd84b05 100644 (file)
@@ -715,7 +715,7 @@ sub compressor_info {
            }
            return ("pigz -p ${pigz_threads}", 'gz');
        } else {
-           return ('gzip', 'gz');
+           return ('gzip --rsyncable', 'gz');
        }
     } else {
        die "internal error - unknown compression option '$opt_compress'";