Skip to content

Commit

Permalink
Fix ownership issues with COPY during provision as root
Browse files Browse the repository at this point in the history
  • Loading branch information
ctheune committed Jan 29, 2025
1 parent fc154ad commit 9d2eeb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/batou/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class FCDevContainer(FCDevProvisioner):
COPY() {{
what=${{1?what to copy}}
where=${{2?where to copy}}
rsync -avz --no-l --safe-links {rsync_path} $what $PROVISION_CONTAINER:$where
rsync -avz --no-owner --no-group --no-l --safe-links {rsync_path} $what $PROVISION_CONTAINER:$where
}}
if [ ${{PROVISION_REBUILD+x}} ]; then
Expand Down Expand Up @@ -400,7 +400,7 @@ class FCDevVM(FCDevProvisioner):
COPY() {{
what=${{1?what to copy}}
where=${{2?where to copy}}
rsync -avz --no-l --safe-links {rsync_path} $what $PROVISION_VM:$where
rsync -avz --no-owner --no-group --no-l --safe-links {rsync_path} $what $PROVISION_VM:$where
}}
if [ ${{PROVISION_REBUILD+x}} ]; then
Expand Down

0 comments on commit 9d2eeb3

Please sign in to comment.