mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-01-19 20:01:59 +08:00
Sanity-check tarball before trying to extract
This commit is contained in:
parent
9f56f36d20
commit
ebaf781547
@ -222,6 +222,10 @@ run_mods() {
|
||||
"${BLOB_URL}${SHALAYER}" -o \
|
||||
/modtarball.tar.xz
|
||||
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
|
||||
if [[ -d /tmp/mod/etc/s6-overlay ]]; then
|
||||
if [[ -d /tmp/mod/etc/cont-init.d ]]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user