diff --git a/README.md b/README.md index f9edbda..f570df3 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,12 @@ docker run --name tmp-roundcube -d roundcube/roundcubemail:latest && \ mkdir -p skins && \ docker cp tmp-roundcube:/var/www/html/skins/elastic skins && \ +# Attendre que le fichier soit disponible (max 60s) +echo "Waiting for Roundcube to be ready..." +timeout 60 bash -c 'until docker exec tmp-roundcube test -f /var/www/html/program/include/iniset.php 2>/dev/null; do sleep 1; done' && \ + +RC_VERSION=$(docker exec tmp-roundcube sed -n "s/define('RCMAIL_VERSION', '\([^']*\)');/\1/p" /var/www/html/program/include/iniset.php) && \ + docker exec tmp-roundcube \ find /var/www/html/plugins -type d -path "*/skins/elastic" | @@ -87,7 +93,7 @@ docker rm -f tmp-roundcube ou -#### 2.1 Directement depuis les sources de roundcubemail (exemple pour la version 1.7.0) +#### 2.1 Directement depuis les sources de roundcubemail (exemple pour la version 1.7.1) ```bash RC_VERSION=1.7.1