Merge pull request #442 from linuxserver/nextcloud-mediadc-s6v3

switch to hybrid (nextcloud-mediadc)
This commit is contained in:
aptalca 2022-09-06 12:44:03 -04:00 committed by GitHub
commit ccddcdd409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
#!/usr/bin/with-contenv bash
if ! pip list 2> /dev/null | grep -q "pillow-heif" || ! pip list 2> /dev/null | grep -q "hexhamming" || ! pip list 2> /dev/null | grep -q "PyWavelets"; then
echo "**** Adding pillow-heif, hexhamming, pywavelets and their deps to package install lists ****"
echo "\
ffmpeg \
imagemagick \
supervisor \
py3-numpy \
py3-pillow \
py3-asn1crypto \
py3-cffi \
py3-scipy \
py3-pynacl \
py3-cryptography \
py3-pip" >> /mod-repo-packages-to-install.list
if [ $(arch) = "armv7l" ]; then
echo "**** Installing build deps for pillow-heif on arm32v7, compiling pillow_heif may take a long time in the next step ****"
echo "\
python3-dev \
libtool \
git \
gcc \
m4 \
perl \
alpine-sdk \
cmake \
aom-dev" >> /mod-repo-packages-to-install.list
fi
echo "\
pillow-heif \
hexhamming \
pywavelets" >> /mod-pip-packages-to-install.list
else
echo "**** pillow-heif, hexhamming and pywavelets already installed, skipping ****"
fi

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-nextcloud-mediadc-add-package/run