Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed on mac needs -e #25

Merged
merged 5 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ project_files:
post_install_actions:
- |
#ddev-description: Change the redis dump filename
#
sed -i "s/REPLACE_ME/${DDEV_SITENAME}/g" redis/snapshots.conf
docker run -e DDEV_SITENAME -v "$(pwd)"/redis:/redis -i --rm ddev/ddev-utilities bash -c "sed -i 's/REPLACE_ME/$DDEV_SITENAME/g' /redis/snapshots.conf"
4 changes: 2 additions & 2 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ teardown() {
@test "install from release" {
set -eu -o pipefail
cd "$TEST_DIR" || ( printf "unable to cd to "$TEST_DIR"\n" && exit 1 )
echo "# ddev get oblakstudio/ddev-redis with project "$PROJECT" in "$TEST_DIR"" >&3
health_checks "oblakstudio/ddev-redis-7"
echo "# ddev get ddev/ddev-redis with project "$PROJECT" in "$TEST_DIR"" >&3
health_checks "ddev/ddev-redis-7"
}