mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-10-08 14:36:38 +00:00
Merge pull request #414 from pbr85/fix/pigz-wrapper-export-gzip
fix(post-install): export GZIP in pigz wrapper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user