Skip to content

Commit

Permalink
[TASK] Set permissions on copied files (#8)
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
ochorocho authored Jul 15, 2024
1 parent 6d4355b commit 31218c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/host/solrctl
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ apply)
docker exec -i ddev-"$DDEV_SITENAME"-typo3-solr mkdir -p /var/solr/data/configsets/
echo "🐳 Copy $(basename "$config") to container"
docker cp "$config" ddev-"$DDEV_SITENAME"-typo3-solr:/var/solr/data/ 1>/dev/null
docker exec -i -u root ddev-"$DDEV_SITENAME"-typo3-solr chown -R solr:solr /var/solr/data/
docker restart ddev-"$DDEV_SITENAME"-typo3-solr 1>/dev/null
wait_for_solr

Expand All @@ -108,6 +109,7 @@ apply)

echo "🐳 Copy configset '$configset_name' to container"
docker cp "$configset_path/." "ddev-$DDEV_SITENAME-typo3-solr:/var/solr/data/configsets/$configset_name" 1>/dev/null
docker exec -i -u root ddev-"$DDEV_SITENAME"-typo3-solr chown -R solr:solr "/var/solr/data/configsets/$configset_name"

# Create solr cores if needed
IFS=$'\n' cores_array=($(echo "$configset" | yqd -o=j -I=0 '.cores.[]'))
Expand Down

0 comments on commit 31218c9

Please sign in to comment.