Persist (and auto update) JS scripts like tag manager containers (#108)
Signed-off-by: Felix Kressmann <felix@felixkr.de>
This commit is contained in:
parent
e83a53fd6f
commit
c576a2236b
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue