Skip to content

Commit

Permalink
fix: ensure legacy files are not copied in a sub dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jan 1, 2024
1 parent 6e796cf commit b524125
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions molecule/default/test/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ def test_config_is_deployed(host):
assert config.user == "libretime"
assert config.group == "libretime"
assert config.mode == 0o640


def test_legacy_files_are_deployed(host):
config = host.file("/usr/share/libretime/legacy/application/preload.php")
assert config.user == "libretime"
assert config.group == "libretime"
assert config.mode == 0o640
2 changes: 1 addition & 1 deletion tasks/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

- name: Copy temporary directory to legacy web root directory
ansible.builtin.copy:
src: "{{ _tmp_legacy_web_root.path }}"
src: "{{ _tmp_legacy_web_root.path }}/"
dest: "{{ libretime_legacy_web_root }}"
owner: "{{ libretime_user }}"
group: "{{ libretime_user }}"
Expand Down

0 comments on commit b524125

Please sign in to comment.