From fde40cfdc523a471bb7a956071632673f573120c Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 14 Dec 2016 11:06:30 +0100 Subject: [PATCH] [fix] Can't untar wkhtmltopdf --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 54ff881..a2042d3 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -73,13 +73,13 @@ extract_sources() { local AS_USER=${2:-admin} # retrieve and extract Roundcube tarball - tarball="/tmp/${APPNAME}.tar.gz" + tarball="/tmp/${APPNAME}.tar.xz" rm -f "$tarball" wget -q -O "$tarball" "$SOURCE_URL" \ || ynh_die "Unable to download tarball" echo "$SOURCE_SHA256 $tarball" | sha256sum -c >/dev/null \ || ynh_die "Invalid checksum of downloaded tarball" - exec_as "$AS_USER" tar xzf "$tarball" -C "$DESTDIR" --strip-components 1 \ + exec_as "$AS_USER" tar xJf "$tarball" -C "$DESTDIR" --strip-components 1 \ || ynh_die "Unable to extract tarball" rm -f "$tarball"