Skip to content

Commit

Permalink
build: add imagick for gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 13, 2018
1 parent e25f5d1 commit 6e1a1a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/ncp-config.d/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {
Expand Down
7 changes: 7 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e1a1a9

Please sign in to comment.