mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
26 lines
576 B
YAML
26 lines
576 B
YAML
- pause:
|
|
prompt: |
|
|
Choice Erpnext version:
|
|
0: ERPNext14
|
|
1: ERPNext13
|
|
2: ERPNext12
|
|
private: no
|
|
Default:0
|
|
register: erpnext_version_options
|
|
|
|
- set_fact:
|
|
erpnext_version_meta:
|
|
"0": "14"
|
|
"1": "13"
|
|
"2": "12"
|
|
|
|
- set_fact:
|
|
erpnext_version: "{{erpnext_version_meta[erpnext_version_options.user_input]}}"
|
|
|
|
- debug:
|
|
msg: "erpnext_version is {{erpnext_version}}"
|
|
|
|
- name: Config .env for start containers
|
|
shell: |
|
|
sed -i 's/APP_VERSION=.*/APP_VERSION=v{{erpnext_version}}/g' {{installpath}}/{{appname}}/.env
|