Skip to content
This repository was archived by the owner on Aug 21, 2022. It is now read-only.

Commit 10d7256

Browse files
committed
fix: do not copy permissions for hooks
Copying permissions may lead to errors when groups are not present on the target container.
1 parent 6f47fe5 commit 10d7256

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tasks/steps/sub/execute-destroy-hook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
path: "{{ stackhead__containerhooks_location }}"
44
patterns: "beforeDestroy_*"
55
register: destroy_hook_files
6-
- raw: "docker cp -a {{ item.path }} stackhead-{{ project_name }}-{{ service.name }}:/{{ item.path|basename }} && docker exec stackhead-{{ project_name }}-{{ service.name }} sh /{{ item.path|basename }}"
6+
- raw: "docker cp {{ item.path }} stackhead-{{ project_name }}-{{ service.name }}:/{{ item.path|basename }} && docker exec stackhead-{{ project_name }}-{{ service.name }} sh /{{ item.path|basename }}"
77
with_items: "{{ destroy_hook_files.files }}"

0 commit comments

Comments
 (0)