switch to hybrid

This commit is contained in:
aptalca
2022-08-19 16:51:40 -04:00
parent 38b3dc300c
commit 67e5d4ae3d
7 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Imagemagick - Docker mod for nginx/swag
This mod adds imagemagick and the php7 imagick module to nginx/swag, to be installed/updated during container start.
This mod adds imagemagick and the php imagick module to nginx/swag, to be installed/updated during container start.
In nginx/swag docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:swag-imagemagick`
@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bash
if ! apk info 2>&1 | grep -q "imagemagick"; then
echo "**** adding imagemagick to package install list ****"
PHPVERSION=$(readlink -f /usr/bin/php | sed 's|/usr/bin/||')
echo "\
imagemagick \
${PHPVERSION}-pecl-imagick" >> /mod-repo-packages-to-install.list
if
else
echo "**** imagemagick already installed, skipping ****"
fi
@@ -0,0 +1 @@
oneshot
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-swag-imagemagick-add-package/run