Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2022-02-15 06:36:54 +01:00
parent 9e23c0ba3b
commit e0f81076a2
2 changed files with 12 additions and 10 deletions

View file

@ -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."

View file

@ -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/
}