mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-04-28 15:18:45 +02:00
migrate_from_conduwuit ownership fix (#4278)
* migration ownership fix * lint fix * lint fixes
This commit is contained in:
parent
f0c48392fe
commit
5ea613a3f6
@ -7,6 +7,7 @@
|
||||
# This migrates the conduwuit server implementation (`/matrix/conduwuit`) to continuwuity (`/matrix/continuwuity`),
|
||||
#
|
||||
# Here, we merely backup the fresh continuwuity folder, relocate conduwuit directory to continuwuity (`/matrix/conduwuit`)
|
||||
#
|
||||
# and restore continuwuity labels.
|
||||
|
||||
- name: Check existence of conduwuit directory
|
||||
@ -56,6 +57,24 @@
|
||||
force: true
|
||||
mode: preserve
|
||||
|
||||
- name: Ensure directories ownership is set
|
||||
block:
|
||||
- name: Set continuwuity ownership
|
||||
ansible.builtin.file:
|
||||
path: "{{ matrix_base_data_path }}/continuwuity"
|
||||
state: directory
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
recurse: true
|
||||
|
||||
- name: Set continuwuity_old ownership
|
||||
ansible.builtin.file:
|
||||
path: "{{ matrix_base_data_path }}/continuwuity_old"
|
||||
state: directory
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
recurse: true
|
||||
|
||||
- name: Ensure matrix-continuwuity.service systemd service is started
|
||||
ansible.builtin.systemd:
|
||||
name: matrix-continuwuity
|
||||
|
Loading…
x
Reference in New Issue
Block a user