mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user