diff --git a/scripts/helmcharts/openreplay/files/dbops.sh b/scripts/helmcharts/openreplay/files/dbops.sh index b77fd61ff..1bcee4e2d 100644 --- a/scripts/helmcharts/openreplay/files/dbops.sh +++ b/scripts/helmcharts/openreplay/files/dbops.sh @@ -2,6 +2,7 @@ set -x cd $(dirname $0) +sleep 100000 is_migrate=$1 @@ -37,16 +38,16 @@ function migration() { case "$1" in postgresql) - /bin/bash postgresql.sh migrate $joined_migration_versions + /bin/bash -x postgresql.sh migrate $joined_migration_versions ;; minio) - /bin/bash minio.sh migrate $joined_migration_versions + /bin/bash -x minio.sh migrate $joined_migration_versions ;; clickhouse) - /bin/bash clickhouse.sh migrate $joined_migration_versions + /bin/bash -x clickhouse.sh migrate $joined_migration_versions ;; kafka) - /bin/bash kafka.sh migrate $joined_migration_versions + /bin/bash -x kafka.sh migrate $joined_migration_versions ;; *) echo "Unknown operation for db migration; exiting." @@ -58,16 +59,16 @@ function migration() { function init(){ case $1 in postgresql) - /bin/bash postgresql.sh init + /bin/bash -x postgresql.sh init ;; minio) - /bin/bash minio.sh migrate $migration_versions + /bin/bash -x minio.sh migrate $migration_versions ;; clickhouse) - /bin/bash clickhouse.sh init + /bin/bash -x clickhouse.sh init ;; kafka) - /bin/bash kafka.sh init + /bin/bash -x kafka.sh init ;; *) echo "Unknown operation for db init; exiting." diff --git a/scripts/helmcharts/openreplay/files/minio.sh b/scripts/helmcharts/openreplay/files/minio.sh index 718402d9a..df7903c31 100644 --- a/scripts/helmcharts/openreplay/files/minio.sh +++ b/scripts/helmcharts/openreplay/files/minio.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -x cd /tmp @@ -35,7 +35,8 @@ mc policy set download minio/frontend mc policy set download minio/sessions-assets mc policy set download minio/static -curl -L https://github.com/openreplay/openreplay/releases/download/${CHART_APP_VERSION}/frontend.tar.gz -O +echo curl -L https://github.com/openreplay/openreplay/releases/download/v${CHART_APP_VERSION}/frontend.tar.gz -O +curl -L https://github.com/openreplay/openreplay/releases/download/v${CHART_APP_VERSION}/frontend.tar.gz -O tar -xf frontend.tar.gz mc cp --recursive frontend/ minio/frontend/ }