From e76811827f6cc42beb927f39b53d6d8c5701cfe6 Mon Sep 17 00:00:00 2001 From: TheSpad Date: Fri, 29 Jul 2022 17:23:40 +0100 Subject: [PATCH] Fix apk path --- root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run b/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run index 8f23925..2083832 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mods-package-install/run @@ -7,7 +7,7 @@ if [ -f "/mod-repo-packages-to-install.list" ]; then apt-get update apt-get install -y --no-install-recommends \ $(cat /mod-repo-packages-to-install.list) - elif [ -f /usr/bin/apk ]; then + elif [ -f /sbin/apk ]; then apk add --no-cache \ $(cat /mod-repo-packages-to-install.list) fi @@ -20,7 +20,7 @@ if [ -f "/mod-pip-packages-to-install.list" ]; then python3 -m pip install -U pip wheel setuptools if [ -f /usr/bin/apt ]; then PIP_ARGS="-f https://wheel-index.linuxserver.io/ubuntu/" - elif [ -f /usr/bin/apk ]; then + elif [ -f /sbin/apk ]; then ALPINE_VER=$(grep main /etc/apk/repositories | sed 's|.*alpine/v||' | sed 's|/main.*||') if [ "${ALPINE_VER}" = "3.14" ]; then PIP_ARGS="-f https://wheel-index.linuxserver.io/alpine/"