Просмотр исходного кода

Relocate user-store.db/room-store.db when migrating Discord bridge files

Refer to 524436ebef and #230 (Github Issue).
pull/231/head
Slavi Pantaleev 6 лет назад
Родитель
Сommit
c40d28a0dc
1 измененных файлов: 5 добавлений и 3 удалений
  1. +5
    -3
      roles/matrix-bridge-appservice-discord/tasks/setup_install.yml

+ 5
- 3
roles/matrix-bridge-appservice-discord/tasks/setup_install.yml Просмотреть файл

@@ -32,10 +32,12 @@
failed_when: false failed_when: false
when: "matrix_appservice_discord_stat_db.stat.exists" when: "matrix_appservice_discord_stat_db.stat.exists"


# In addition to this, there used to be some `user-store-db` and `room-store.db` files.
# They're no longer in use, so we're not relocating them in an effort to point them out as neither `./data`, nor `./config`.
- name: (Data relocation) Move AppService Discord discord.db file to ./data directory - name: (Data relocation) Move AppService Discord discord.db file to ./data directory
command: "mv {{ matrix_appservice_discord_base_path }}/discord.db {{ matrix_appservice_discord_data_path }}/discord.db"
command: "mv {{ matrix_appservice_discord_base_path }}/{{ item }} {{ matrix_appservice_discord_data_path }}/{{ item }}"
with_items:
- discord.db
- user-store.db
- room-store.db
when: "matrix_appservice_discord_stat_db.stat.exists" when: "matrix_appservice_discord_stat_db.stat.exists"


- name: Ensure AppService Discord config.yaml installed - name: Ensure AppService Discord config.yaml installed


Загрузка…
Отмена
Сохранить