From 3ed7bcea41fbc9dace5795f1577b2fd0b106d0a0 Mon Sep 17 00:00:00 2001 From: Serhey Popovych Date: Sun, 24 Jan 2021 18:14:41 +0200 Subject: [PATCH] easy-rsa: Add workaround for issue #1 This is to simplify installation process to eliminate the need to rename files and directories manually. Signed-off-by: Serhey Popovych --- install-sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install-sh b/install-sh index 28fcbb5..4a0785c 100644 --- a/install-sh +++ b/install-sh @@ -2,6 +2,21 @@ # Requires: rm(1), ln(1), id(1) +## Workaround for issue https://github.com/serhepopovych/easy-rsa/issues/1 + +for u in \ + "$ROOT/etc/lighttpd/vhosts.d/@fqdn@" \ + "$ROOT/etc/lighttpd/pki/@domain@" \ + "$ROOT/etc/logrotate.d/lighttpd-@fqdn@" \ + "$ROOT/var/log/lighttpd/@fqdn@" \ + \ + "$ROOT/etc/letsencrypt/live/@domain@" \ + "$ROOT/etc/letsencrypt/live/@fqdn@" \ + # +do + mv "$u" "$(echo "$u" | eval sed $SUBST_TEMPLATES)" ||: +done + ## Make xbin symlink t="$TARGET/easy-rsa/extensions/xbin"