Fix mxisd -> ma1sd data migration (mxisd.db -> ma1sd.db)

This commit is contained in:
Slavi Pantaleev 2020-04-03 09:53:31 +03:00
parent a4ea2f850b
commit a0b82d2234

View file

@ -51,15 +51,15 @@
- name: Copy mxisd data files to ma1sd folder
copy:
src: "{{ item }}"
src: "{{ item.src }}"
remote_src: true
dest: "{{ matrix_ma1sd_data_path }}/"
dest: "{{ matrix_ma1sd_data_path }}/{{ item.dst_name }}"
mode: "preserve"
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_username }}"
with_items:
- "{{ matrix_base_data_path }}/mxisd/data/mxisd.db"
- "{{ matrix_base_data_path }}/mxisd/data/sign.key"
- {"src": "{{ matrix_base_data_path }}/mxisd/data/mxisd.db", "dst_name": "ma1sd.db"}
- {"src": "{{ matrix_base_data_path }}/mxisd/data/sign.key", "dst_name": "sign.key"}
when: "ma1sd_migrate_mxisd_data_dir_stat.stat.exists"
- name: Rename mxisd folder