mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-20 10:21:36 -04:00
switch to hybrid
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Imagemagick - Docker mod for nginx/swag
|
# 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`
|
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
|
||||||
Reference in New Issue
Block a user