From: IOhannes m zmölnig Date: Thu, 24 Apr 2025 09:12:48 +0000 (+0200) Subject: Refresh apt-cache before installing dictionaries X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=95484c5fc0e85b6fd9aa118f1176d29b73350d3d;p=roundcube-roundcubemail-docker.git Refresh apt-cache before installing dictionaries Closes: https://github.com/roundcube/roundcubemail-docker/issues/334 Signed-off-by: IOhannes m zmölnig --- diff --git a/apache/docker-entrypoint.sh b/apache/docker-entrypoint.sh index 95174b4..d2cbe0b 100755 --- a/apache/docker-entrypoint.sh +++ b/apache/docker-entrypoint.sh @@ -195,7 +195,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"` - which apt-get && apt-get install -y $ASPELL_PACKAGES + which apt-get && apt-get update && apt-get install -y $ASPELL_PACKAGES which apk && apk add --no-cache $ASPELL_PACKAGES fi diff --git a/fpm-alpine/docker-entrypoint.sh b/fpm-alpine/docker-entrypoint.sh index 95174b4..d2cbe0b 100755 --- a/fpm-alpine/docker-entrypoint.sh +++ b/fpm-alpine/docker-entrypoint.sh @@ -195,7 +195,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"` - which apt-get && apt-get install -y $ASPELL_PACKAGES + which apt-get && apt-get update && apt-get install -y $ASPELL_PACKAGES which apk && apk add --no-cache $ASPELL_PACKAGES fi diff --git a/fpm/docker-entrypoint.sh b/fpm/docker-entrypoint.sh index 95174b4..d2cbe0b 100755 --- a/fpm/docker-entrypoint.sh +++ b/fpm/docker-entrypoint.sh @@ -195,7 +195,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"` - which apt-get && apt-get install -y $ASPELL_PACKAGES + which apt-get && apt-get update && apt-get install -y $ASPELL_PACKAGES which apk && apk add --no-cache $ASPELL_PACKAGES fi diff --git a/templates/docker-entrypoint.sh b/templates/docker-entrypoint.sh index 95174b4..d2cbe0b 100644 --- a/templates/docker-entrypoint.sh +++ b/templates/docker-entrypoint.sh @@ -195,7 +195,7 @@ if [[ "$1" == apache2* || "$1" == php-fpm || "$1" == bin* ]]; then if [ ! -z "${ROUNDCUBEMAIL_ASPELL_DICTS}" ]; then ASPELL_PACKAGES=`echo -n "aspell-${ROUNDCUBEMAIL_ASPELL_DICTS}" | sed -E "s/[, ]+/ aspell-/g"` - which apt-get && apt-get install -y $ASPELL_PACKAGES + which apt-get && apt-get update && apt-get install -y $ASPELL_PACKAGES which apk && apk add --no-cache $ASPELL_PACKAGES fi