Skip to content

Commit b72f0a2

Browse files
authored
Merge pull request #38 from linuxserver/custom-files-x
2 parents 047442e + 892694d commit b72f0a2

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM alpine:3 as rootfs-stage
3+
FROM alpine:3 AS rootfs-stage
44

55
ARG ARCH_VERSION
66

@@ -34,7 +34,7 @@ RUN \
3434
/root-out
3535

3636
# pacstrap stage
37-
FROM scratch as pacstrap-stage
37+
FROM scratch AS pacstrap-stage
3838
COPY --from=rootfs-stage /root-out/ /
3939

4040
RUN \
@@ -72,7 +72,7 @@ RUN \
7272
rm /root-out/var/lib/pacman/sync/*
7373

7474
# set version for s6 overlay
75-
ARG S6_OVERLAY_VERSION="3.2.0.2"
75+
ARG S6_OVERLAY_VERSION="3.2.1.0"
7676
ARG S6_OVERLAY_ARCH="x86_64"
7777

7878
# add s6 overlay

Dockerfile.aarch64

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM alpine:3 as rootfs-stage
3+
FROM alpine:3 AS rootfs-stage
44

55
# install packages
66
RUN \
@@ -23,7 +23,7 @@ RUN \
2323
/root-out
2424

2525
# pacstrap stage
26-
FROM scratch as pacstrap-stage
26+
FROM scratch AS pacstrap-stage
2727
COPY --from=rootfs-stage /root-out/ /
2828

2929
RUN \
@@ -64,7 +64,7 @@ RUN \
6464
rm /root-out/var/lib/pacman/sync/*
6565

6666
# set version for s6 overlay
67-
ARG S6_OVERLAY_VERSION="3.2.0.2"
67+
ARG S6_OVERLAY_VERSION="3.2.1.0"
6868
ARG S6_OVERLAY_ARCH="aarch64"
6969

7070
# add s6 overlay

root/etc/s6-overlay/s6-rc.d/init-custom-files/run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ if [[ -e "${SCRIPTS_DIR}" ]] && [[ -n "$(/bin/ls -A ${SCRIPTS_DIR} 2>/dev/null)"
99
echo "[custom-init] Files found, executing"
1010
for SCRIPT in "${SCRIPTS_DIR}"/*; do
1111
NAME="$(basename "${SCRIPT}")"
12-
if [[ -f "${SCRIPT}" ]]; then
12+
if [[ -x "${SCRIPT}" ]]; then
1313
echo "[custom-init] ${NAME}: executing..."
1414
/bin/bash "${SCRIPT}"
1515
echo "[custom-init] ${NAME}: exited $?"
16-
elif [[ ! -f "${SCRIPT}" ]]; then
17-
echo "[custom-init] ${NAME}: is not a file"
16+
elif [[ ! -x "${SCRIPT}" ]]; then
17+
echo "[custom-init] ${NAME}: is not an executable file"
1818
fi
1919
done
2020
else

0 commit comments

Comments
 (0)