From fd57c7a9f2bdce46e1beeb0b8c19fe3c6c66c819 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 19 Oct 2020 11:23:41 +0200 Subject: [PATCH] Make domain replacement command shorter --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f575ae4..74e2240 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,10 @@ ip4.clerie.de and ip6.clerie.de just returns the remote addr. ip4.clerie.de has only an A record. ip6.clerie.de has only an AAAA record. -If you want host this yourself you have to replace all hardcoded domains. You can use the following sed command. Don't forget to change `IP.EXAMPLE.COM`, `IP4.EXAMPLE.COM` and `IP6.EXAMPLE.COM` to your own. +If you want host this yourself you have to replace all hardcoded domains. You can use the following sed command. Don't forget to change `.EXAMPLE.COM` to your own. ``` -sed -e '/git.clerie.de/!s/ip.clerie.de/IP.EXAMPLE.COM/g;s/ip4.clerie.de/IP4.EXAMPLE.COM/g;s/ip6.clerie.de/IP6.EXAMPLE.COM/g' ip.clerie.de +sed -e '/git.clerie.de/!s/.clerie.de/.EXAMPLE.COM/g;' ip.clerie.de ``` The first match is to exclude the line with the link to the git repo from replacing.