Skip to content

Commit bdebcdd

Browse files
sherifnadagl-pix
authored andcommitted
connector generate: fix chown logic (#4774)
1 parent 48a3085 commit bdebcdd

File tree

1 file changed

+4
-2
lines changed
  • airbyte-integrations/connector-templates/generator

1 file changed

+4
-2
lines changed

airbyte-integrations/connector-templates/generator/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ ENV ENV_GID $GID
88
RUN mkdir -p /airbyte
99
WORKDIR /airbyte/airbyte-integrations/connector-templates/generator
1010

11-
CMD npm install --silent --no-update-notifier && \
11+
CMD npm install --silent --no-update-notifier && echo "INSTALL DONE" && \
1212
npm run generate "$package_desc" "$package_name" && \
13-
chown -R $ENV_UID:$ENV_GID /airbyte/*
13+
LAST_CREATED_CONNECTOR=$(ls -td /airbyte/airbyte-integrations/connectors/* | head -n 1) && \
14+
echo "chowning generated directory: $LAST_CREATED_CONNECTOR" && \
15+
chown -R $ENV_UID:$ENV_GID $LAST_CREATED_CONNECTOR/*

0 commit comments

Comments
 (0)