Skip to content

Commit 172e660

Browse files
committed
[dx] automatically detect version for migrations in installer.sh
Signed-off-by: Andrei Kvapil <[email protected]>
1 parent 14262cd commit 172e660

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/installer.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -o pipefail
33
set -e
44

55
BUNDLE=$(set -x; kubectl get configmap -n cozy-system cozystack -o 'go-template={{index .data "bundle-name"}}')
6-
VERSION=12
6+
VERSION=$(find scripts/migrations -mindepth 1 -maxdepth 1 -type f | sort -V | awk -F/ 'END {print $NF+1}')
77

88
run_migrations() {
99
if ! kubectl get configmap -n cozy-system cozystack-version; then

0 commit comments

Comments
 (0)