diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-08-31 16:19:42 +0300 |
---|---|---|
committer | nacho <nacho@ownyourbits.com> | 2018-09-13 03:54:15 +0300 |
commit | 6e1a1a91b3d590262b58e08c9211fdfc73957c97 (patch) | |
tree | fdd57dad205c24ba65b420da0b1e1b8e48153f04 | |
parent | e25f5d18628047c7b33fd912c253b01447d766fb (diff) |
build: add imagick for galleryv0.59.3
-rw-r--r-- | etc/ncp-config.d/nc-nextcloud.sh | 3 | ||||
-rwxr-xr-x | update.sh | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh index f1ea15c2..ed7a3b71 100644 --- a/etc/ncp-config.d/nc-nextcloud.sh +++ b/etc/ncp-config.d/nc-nextcloud.sh @@ -40,7 +40,8 @@ install() # Optional packets for Nextcloud and Apps apt-get update $APTINSTALL lbzip2 iputils-ping - $APTINSTALL php-smbclient + $APTINSTALL php-smbclient # for external storage + $APTINSTALL php-imagick imagemagick-6-common # for gallery # POSTFIX $APTINSTALL postfix || { @@ -287,6 +287,13 @@ EOF [[ "$( ls -l /etc/php/7.0/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.0/fpm/conf.d/*-opcache.ini | tail -1 )" [[ "$( ls -l /etc/php/7.0/cli/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.0/cli/conf.d/*-opcache.ini | tail -1 )" + # faster previews + [[ -f /etc/php/7.0/mods-available/imagick.ini ]] || { + apt-get update + apt-get install -y --no-install-recommends php-imagick imagemagick-6-common + } + + } # end - only live updates exit 0 |