Don't restore permissions when untaring

We're running as root, so those aren't the defaults,
but we're unpacking on vfat, so trying to preserve permissions
fails horribly.
This commit is contained in:
NiLuJe
2014-08-01 21:52:04 +02:00
parent c25186911b
commit e749018f71

View File

@@ -88,7 +88,7 @@ if [ -f "${NEWUPDATE}" ] ; then
if [ -x "${GNUTAR_BIN}" ] ; then
# Let our checkpoint script handle the detailed visual feedback...
eips_print_bottom_centered "Updating koreader" 1
${GNUTAR_BIN} -C "/mnt/us" --checkpoint=200 --checkpoint-action=exec='./kotar_cpoint $TAR_CHECKPOINT' -xf "${NEWUPDATE}"
${GNUTAR_BIN} -C "/mnt/us" --no-same-owner --no-same-permissions --checkpoint=200 --checkpoint-action=exec='./kotar_cpoint $TAR_CHECKPOINT' -xf "${NEWUPDATE}"
else
# Fall back to busybox tar
eips_print_bottom_centered "Updating koreader . . ." 1