Update koreader.sh; fixes #2791

tar fails to apply permissions on fat32 filesystem. thus mv doesn't get executed and consequently OTA package gets applied on every launch.
This commit is contained in:
a-kohout
2017-04-23 01:13:36 +02:00
committed by Qingping Hou
parent a05f23d8fe
commit 870c4d3859

View File

@@ -12,7 +12,7 @@ NEWUPDATE="${KOREADER_DIR}/ota/koreader.updated.tar"
INSTALLED="${KOREADER_DIR}/ota/koreader.installed.tar"
if [ -f "${NEWUPDATE}" ]; then
# TODO: any graphic indication for the updating progress?
./tar xf "${NEWUPDATE}" --strip-components=1 && mv "${NEWUPDATE}" "${INSTALLED}"
./tar xf "${NEWUPDATE}" --strip-components=1 --no-same-permissions --no-same-owner && mv "${NEWUPDATE}" "${INSTALLED}"
fi
# load our own shared libraries if possible