1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

[fix] Can't untar wkhtmltopdf

This commit is contained in:
ljf 2016-12-14 11:06:30 +01:00
parent 7d629eaa54
commit fde40cfdc5

View file

@ -73,13 +73,13 @@ extract_sources() {
local AS_USER=${2:-admin} local AS_USER=${2:-admin}
# retrieve and extract Roundcube tarball # retrieve and extract Roundcube tarball
tarball="/tmp/${APPNAME}.tar.gz" tarball="/tmp/${APPNAME}.tar.xz"
rm -f "$tarball" rm -f "$tarball"
wget -q -O "$tarball" "$SOURCE_URL" \ wget -q -O "$tarball" "$SOURCE_URL" \
|| ynh_die "Unable to download tarball" || ynh_die "Unable to download tarball"
echo "$SOURCE_SHA256 $tarball" | sha256sum -c >/dev/null \ echo "$SOURCE_SHA256 $tarball" | sha256sum -c >/dev/null \
|| ynh_die "Invalid checksum of downloaded tarball" || 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" || ynh_die "Unable to extract tarball"
rm -f "$tarball" rm -f "$tarball"