File tree Expand file tree Collapse file tree 6 files changed +37
-0
lines changed
root/etc/s6-overlay/s6-rc.d
init-mods-end/dependencies.d
init-mods-package-install Expand file tree Collapse file tree 6 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/with-contenv bash
2+
3+ if [ -f "/mod-repo-packages-to-install.list" ]; then
4+ echo "**** Installing all mod packages ****"
5+ if [ -f /usr/bin/apt ]; then
6+ export DEBIAN_FRONTEND="noninteractive"
7+ apt-get update
8+ apt-get install -y --no-install-recommends \
9+ $(cat /mod-repo-packages-to-install.list)
10+ elif [ -f /sbin/apk ]; then
11+ apk add --no-cache \
12+ $(cat /mod-repo-packages-to-install.list)
13+ fi
14+ fi
15+
16+ if [ -f "/mod-pip-packages-to-install.list" ]; then
17+ echo "**** Installing all pip packages ****"
18+ python3 -m pip install -U pip wheel setuptools
19+ if [ -f /usr/bin/apt ]; then
20+ PIP_ARGS="-f https://wheel-index.linuxserver.io/ubuntu/"
21+ elif [ -f /sbin/apk ]; then
22+ ALPINE_VER=$(grep main /etc/apk/repositories | sed 's|.*alpine/v||' | sed 's|/main.*||')
23+ if [ "${ALPINE_VER}" = "3.14" ]; then
24+ PIP_ARGS="-f https://wheel-index.linuxserver.io/alpine/"
25+ else
26+ PIP_ARGS="-f https://wheel-index.linuxserver.io/alpine-${ALPINE_VER}/"
27+ fi
28+ fi
29+ python3 -m pip install ${PIP_ARGS} \
30+ $(cat /mod-pip-packages-to-install.list)
31+ fi
32+
33+ rm -rf \
34+ /mod-repo-packages-to-install.list \
35+ /mod-pip-packages-to-install.list
Original file line number Diff line number Diff line change 1+ oneshot
Original file line number Diff line number Diff line change 1+ /etc/s6-overlay/s6-rc.d/init-mods-package-install/run
You can’t perform that action at this time.
0 commit comments