Merge pull request #28 from linuxserver/bookworm-custom-files-x

This commit is contained in:
Adam 2025-11-15 10:01:53 +00:00 committed by GitHub
commit 096b28ffac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM alpine:3 as rootfs-stage
FROM alpine:3 AS rootfs-stage
# environment
ENV REL=bookworm
@ -27,7 +27,7 @@ RUN \
/root-out/var/log/*
# set version for s6 overlay
ARG S6_OVERLAY_VERSION="3.2.0.2"
ARG S6_OVERLAY_VERSION="3.2.1.0"
ARG S6_OVERLAY_ARCH="x86_64"
# add s6 overlay

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM alpine:3 as rootfs-stage
FROM alpine:3 AS rootfs-stage
# environment
ENV REL=bookworm
@ -27,7 +27,7 @@ RUN \
/root-out/var/log/*
# set version for s6 overlay
ARG S6_OVERLAY_VERSION="3.2.0.2"
ARG S6_OVERLAY_VERSION="3.2.1.0"
ARG S6_OVERLAY_ARCH="aarch64"
# add s6 overlay

View File

@ -9,12 +9,12 @@ if [[ -e "${SCRIPTS_DIR}" ]] && [[ -n "$(/bin/ls -A ${SCRIPTS_DIR} 2>/dev/null)"
echo "[custom-init] Files found, executing"
for SCRIPT in "${SCRIPTS_DIR}"/*; do
NAME="$(basename "${SCRIPT}")"
if [[ -f "${SCRIPT}" ]]; then
if [[ -x "${SCRIPT}" ]]; then
echo "[custom-init] ${NAME}: executing..."
/bin/bash "${SCRIPT}"
echo "[custom-init] ${NAME}: exited $?"
elif [[ ! -f "${SCRIPT}" ]]; then
echo "[custom-init] ${NAME}: is not a file"
elif [[ ! -x "${SCRIPT}" ]]; then
echo "[custom-init] ${NAME}: is not an executable file"
fi
done
else