Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Updated sed command to drop trying to create a backup first.
Browse files Browse the repository at this point in the history
  • Loading branch information
kerns committed Jun 9, 2022
1 parent e1f01a0 commit f874053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ddev/commands/web/set_primary_site_url.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

## Description: Sets the default PRIMARY_SITE_URL of your Craft .env file to your ddev project name. Only looks for and replaces YOUR-CRAFT-PROJECT-NAME so manually edited names won't be impacted.
## Description: Sets the default PRIMARY_SITE_URL of your Craft .env file to your ddev project name.
## Usage: set_primary_site_url
## Example: "ddev set_primary_site_url"

sed -i'.bak' "s/YOUR-CRAFT-PROJECT-NAME/${DDEV_SITENAME}/" /var/www/html/.env
sed -i -s "s/YOUR-CRAFT-PROJECT-NAME/${DDEV_SITENAME}/" /var/www/html/.env

0 comments on commit f874053

Please sign in to comment.