Skip to content

Commit 672ccdc

Browse files
authored
Merge pull request #26 from linuxserver/kali-custom-files-x
2 parents c66e6e0 + 7700ced commit 672ccdc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ RUN \
4242
/root-out/var/log/* && \
4343
echo "**** modify layer repo ****" && \
4444
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" > /root-out/etc/apt/sources.list && \
45-
echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" >> /root-out/etc/apt/sources.list
45+
echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" >> /root-out/etc/apt/sources.list
4646

4747
# set version for s6 overlay
48-
ARG S6_OVERLAY_VERSION="3.1.6.2"
48+
ARG S6_OVERLAY_VERSION="3.2.1.0"
4949
ARG S6_OVERLAY_ARCH="x86_64"
5050

5151
# add s6 overlay

Dockerfile.aarch64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ RUN \
4242
/root-out/var/log/* && \
4343
echo "**** modify layer repo ****" && \
4444
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" > /root-out/etc/apt/sources.list && \
45-
echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" >> /root-out/etc/apt/sources.list
45+
echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" >> /root-out/etc/apt/sources.list
4646

4747
# set version for s6 overlay
48-
ARG S6_OVERLAY_VERSION="3.1.6.2"
48+
ARG S6_OVERLAY_VERSION="3.2.1.0"
4949
ARG S6_OVERLAY_ARCH="aarch64"
5050

5151
# 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)