Skip to content

Commit

Permalink
connector generate: fix chown logic (#4774)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifnada authored Jul 15, 2021
1 parent d279ae3 commit af77141
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions airbyte-integrations/connector-templates/generator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ENV ENV_GID $GID
RUN mkdir -p /airbyte
WORKDIR /airbyte/airbyte-integrations/connector-templates/generator

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

0 comments on commit af77141

Please sign in to comment.