Persist (and auto update) JS scripts like tag manager containers (#108)

Signed-off-by: Felix Kressmann <felix@felixkr.de>
This commit is contained in:
Felix Kreßmann 2022-04-07 19:11:22 +02:00 committed by GitHub
parent e83a53fd6f
commit c576a2236b
2 changed files with 4 additions and 1 deletions

View File

@ -206,6 +206,9 @@ EOF
# Update default plugins
info "Updating default plugins in persisted data"
rsync -a "$MATOMO_BASE_DIR"/plugins/ "$MATOMO_VOLUME_DIR"/plugins/
# Update default js files
info "Updating default js scripts in persisted data"
rsync -a "$MATOMO_BASE_DIR"/js/ "$MATOMO_VOLUME_DIR"/js/
info "Restoring Matomo installation"
restore_persisted_app "$app_name" "$MATOMO_DATA_TO_PERSIST"
info "Trying to connect to the database server"

View File

@ -79,7 +79,7 @@ export MATOMO_CONF_FILE="${MATOMO_CONF_DIR}/config.ini.php"
# Matomo persistence configuration
export MATOMO_VOLUME_DIR="${BITNAMI_VOLUME_DIR}/matomo"
export MATOMO_DATA_TO_PERSIST="${MATOMO_DATA_TO_PERSIST:-config/config.ini.php misc/user plugins}"
export MATOMO_DATA_TO_PERSIST="${MATOMO_DATA_TO_PERSIST:-config/config.ini.php misc/user plugins js}"
# Matomo configuration
export MATOMO_SKIP_BOOTSTRAP="${MATOMO_SKIP_BOOTSTRAP:-}" # only used during the first initialization