#!/bin/sh # Importe une customisation Elastic (format roundcube-custom/vblog) dans theme/ et config/ # Usage : scripts/sync-theme.sh [dossier_source] (défaut : ../roundcube-custom/vblog) set -eu cd "$(dirname "$0")/.." SRC=${1:-../roundcube-custom/vblog} [ -d "$SRC" ] || { echo "Source introuvable : $SRC" >&2; exit 1; } rm -rf theme && mkdir -p theme for f in _variables.less _styles.less; do if [ -f "$SRC/$f" ]; then cp "$SRC/$f" theme/; fi done for d in fonts images; do if [ -d "$SRC/$d" ]; then cp -r "$SRC/$d" theme/; fi done if [ -f "$SRC/config-vblog.inc.php" ]; then cp "$SRC/config-vblog.inc.php" config/20-vblog.inc.php fi echo "Thème importé depuis $SRC. Appliquer : docker compose up -d --build"