mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-17 16:35:47 -04:00
Sanity-check tarball before trying to extract
This commit is contained in:
@@ -222,6 +222,10 @@ run_mods() {
|
|||||||
"${BLOB_URL}${SHALAYER}" -o \
|
"${BLOB_URL}${SHALAYER}" -o \
|
||||||
/modtarball.tar.xz
|
/modtarball.tar.xz
|
||||||
mkdir -p /tmp/mod
|
mkdir -p /tmp/mod
|
||||||
|
if ! tar -tzf /modtarball.tar.xz >/dev/null 2>&1; then
|
||||||
|
echo "Invalid tarball, could not download ${DOCKER_MOD}"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
tar xzf /modtarball.tar.xz -C /tmp/mod
|
tar xzf /modtarball.tar.xz -C /tmp/mod
|
||||||
if [[ -d /tmp/mod/etc/s6-overlay ]]; then
|
if [[ -d /tmp/mod/etc/s6-overlay ]]; then
|
||||||
if [[ -d /tmp/mod/etc/cont-init.d ]]; then
|
if [[ -d /tmp/mod/etc/cont-init.d ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user