Add chmod to rsync to keep directories writable

This commit is contained in:
UGA Innovation Factory
2025-12-18 19:07:09 -05:00
parent 594a2a97d5
commit e1ccd7cc3e

View File

@@ -64,8 +64,8 @@ let
$src/docker-compose.yml > $TMPDIR/docker-compose.yml
fi
# Copy all application files using rsync, excluding files we'll provide separately
${pkgs.rsync}/bin/rsync -av --exclude='.git' --exclude='docker-compose.yml' --exclude='.env' --exclude='management-dashboard-web-app/.env' $src/ $out/opt/usda-vision/
# Copy all application files using rsync with chmod, excluding files we'll provide separately
${pkgs.rsync}/bin/rsync -av --chmod=Du+w --exclude='.git' --exclude='docker-compose.yml' --exclude='.env' --exclude='management-dashboard-web-app/.env' $src/ $out/opt/usda-vision/
# Copy the processed docker-compose.yml
if [ -f $TMPDIR/docker-compose.yml ]; then