Commit ccac835c authored by Jacob Vosmaer's avatar Jacob Vosmaer

Perform single edits in gitlab.yml with ed

Sed works well for global search and replace, but if you only want to
change one occurence it seems to be easier to use ed.
parent d8afad33
......@@ -16,8 +16,8 @@ gitlab-config: gitlab/config/gitlab.yml gitlab/config/database.yml gitlab/config
sed -e "s|/home/git|${gitlab_development_root}|"\
-e "s|# user: git|user: $(shell whoami)|"\
gitlab/config/gitlab.yml.example > gitlab/config/gitlab.yml
support/edit-gitlab.yml gitlab/config/gitlab.yml
sed "s|/home/git|${gitlab_development_root}|" database.yml.example > gitlab/config/database.yml
# This script will edit the file named as the first argument in-place.
ed -s "$1" <<EOF
port: 3000
/ user:/c
user: $(whoami)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment