Skip to content

Commit

Permalink
Merge pull request #338 from joshdentremont/patch-4
Browse files Browse the repository at this point in the history
fix for public file export path
  • Loading branch information
aOelschlager authored Aug 2, 2023
2 parents 37cb8e7 + bbdd83f commit 8b7e11c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ drupal-public-files-dump:
ifndef DEST
$(error DEST is not set)
endif
docker compose exec -T drupal with-contenv bash -lc 'tar zcvf /tmp/public-files.tgz /var/www/drupal/web/sites/default/files'
docker cp $$(docker compose ps -q drupal):/tmp/public-files.tgz $(DEST)
docker compose exec -T drupal with-contenv bash -lc 'tar zcvf /tmp/public-files.tgz -C /var/www/drupal/web/sites/default/files ${PUBLIC_FILES_TAR_DUMP_PATH}'
docker cp $$(docker-compose ps -q drupal):/tmp/public-files.tgz $(DEST)


# import Drupal's public files from zipped tarball
Expand Down
6 changes: 6 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,9 @@ WATCHTOWER_MEMORY_LIMIT=2G
CANTALOUPE_DELEGATE_SCRIPT_ENABLED=false
CANTALOUPE_DELEGATE_SCRIPT_PATHNAME=/opt/tomcat/bin/delegates.rb
CANTALOUPE_HTTPSOURCE_LOOKUP_STRATEGY=BasicLookupStrategy

# Path to include in tar file for exported public files
# If set to . the files will be exported wherever you specify as DEST
# when running make drupal-public-files-import
# If set to anything else, that path will be added to DEST
PUBLIC_FILES_TAR_DUMP_PATH=.

0 comments on commit 8b7e11c

Please sign in to comment.