From aa22f7fbebb9f116cbffa3ec05ad7c9da9ebf591 Mon Sep 17 00:00:00 2001
From: Daniel Winzen <daniel@danwin1210.me>
Date: Thu, 6 Feb 2020 07:01:33 +0100
Subject: [PATCH] Added xz and zopfli to chroot

---
 README.md               | 2 +-
 var/www/setup_chroot.sh | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index a05a59d..7611520 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ echo "deb https://deb.torproject.org/torproject.org sid main" >> /etc/apt/source
 
 The following command will install all required packages:
 ```
-apt-get --no-install-recommends install apt-transport-tor brotli bzip2 clamav-daemon clamav-freshclam clamav-milter curl dovecot-imapd dovecot-pop3d git dnsmasq hardlink haveged iptables libsasl2-modules locales locales-all logrotate mariadb-server nano nodejs postfix postfix-mysql quota quotatool rsync ssh subversion tor unzip vim vsftpd wget yarn zip
+apt-get --no-install-recommends install apt-transport-tor brotli bzip2 clamav-daemon clamav-freshclam clamav-milter curl dovecot-imapd dovecot-pop3d git dnsmasq hardlink haveged iptables libsasl2-modules locales locales-all logrotate mariadb-server nano nodejs postfix postfix-mysql quota quotatool rsync ssh subversion tor unzip vim vsftpd wget xz-utils yarn zip zopfli
 ```
 The following command will install all required build dependencies for nginx and php:
 ```
diff --git a/var/www/setup_chroot.sh b/var/www/setup_chroot.sh
index 9ca261a..e2f4c7c 100755
--- a/var/www/setup_chroot.sh
+++ b/var/www/setup_chroot.sh
@@ -101,6 +101,9 @@ BINARIES_GENERAL=(
     '/usr/bin/zip'
     '/usr/bin/unzip'
     '/usr/bin/brotli'
+    '/usr/bin/unxz'
+    '/usr/bin/xz'
+    '/usr/bin/zopfli'
     '/usr/bin/curl'
     '/usr/bin/rsync'
     '/usr/bin/scp'