diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh index f1ea15c23..ed7a3b718 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 || { diff --git a/update.sh b/update.sh index 2a5fc11e0..582eb6773 100755 --- a/update.sh +++ b/update.sh @@ -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