Skip to content

Commit

Permalink
Merge pull request #3080 from uselagoon/rootless-drush-rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Mar 30, 2022
2 parents 7e20867 + f22ce91 commit 0869c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/api/src/resources/task/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ export const taskDrushRsyncFiles: ResolverFn = async (
const command =
`LAGOON_ALIAS_PREFIX="" && \
if [[ ! "" = "$(drush | grep 'lagoon:aliases')" ]]; then LAGOON_ALIAS_PREFIX="lagoon.\${LAGOON_PROJECT}-"; fi && \
drush -y rsync @\${LAGOON_ALIAS_PREFIX}${sourceEnvironment.name}:%files @self:%files`;
drush -y rsync @\${LAGOON_ALIAS_PREFIX}${sourceEnvironment.name}:%files @self:%files -- --omit-dir-times --no-perms --no-group --no-owner --chmod=ugo=rwX`;

const taskData = await Helpers(sqlClientPool).addTask({
name: `Sync files ${sourceEnvironment.name} -> ${destinationEnvironment.name}`,
Expand Down

0 comments on commit 0869c65

Please sign in to comment.