Merge pull request #414 from pbr85/fix/pigz-wrapper-export-gzip

fix(post-install): export GZIP in pigz wrapper
This commit is contained in:
MacRimi
2026-09-30 22:27:01 +02:00
committed by GitHub
@@ -1666,14 +1666,14 @@ configure_pigz() {
if [ ! -f /bin/pigzwrapper ] || ! cmp -s /bin/pigzwrapper - <<EOF
#!/bin/sh
PATH=/bin:\$PATH
GZIP="-1"
export GZIP="-1"
exec /usr/bin/pigz "\$@"
EOF
then
pmx_write_file /bin/pigzwrapper <<EOF
#!/bin/sh
PATH=/bin:\$PATH
GZIP="-1"
export GZIP="-1"
exec /usr/bin/pigz "\$@"
EOF
chmod +x /bin/pigzwrapper
@@ -1689,6 +1689,10 @@ EOF
pmx_write_file /bin/gzip < /bin/pigzwrapper && \
chmod +x /bin/gzip
msg_ok "$(translate "gzip replaced with pigz wrapper successfully")"
elif ! cmp -s /bin/gzip /bin/pigzwrapper; then
pmx_write_file /bin/gzip < /bin/pigzwrapper && \
chmod +x /bin/gzip
msg_ok "$(translate "gzip replaced with pigz wrapper successfully")"
else
msg_ok "$(translate "gzip replaced with pigz wrapper successfully")"
fi