Update pre.yml

This commit is contained in:
qiaofeng1227 2022-08-16 09:07:45 +08:00 committed by GitHub
parent 8e0c98d820
commit 76d95e225b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,3 +39,8 @@
- name: Config .env for start containers
shell: |
sed -i 's/APP_VERSION=.*/APP_VERSION={{mongodb_version}}/g' {{installpath}}/{{appname}}/.env
- name: Config .env for Mongo Compass when mongodb_version < 3.6
shell: |
sed -i 's/APP_VERSION=.*/APP_VERSION=v1.6/g' {{installpath}}/mongocompass/.env
when: mongodb_version < 3.6