summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-12 11:30:18 +0100
committerErich Eckner <git@eckner.net>2019-12-12 11:30:18 +0100
commitc16a4eaaea558d66070464863082b5ad8bfa16e4 (patch)
treeca81821816d5353d98233d65578e0cb126afc65f
parent4bf8c26765ee5b14284aa94814ac31c4a5130723 (diff)
downloadsimple-pki-c16a4eaaea558d66070464863082b5ad8bfa16e4.tar.xz
Makefile: install as root if http is unavailablev0.2.5
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 676dd1d..26b63d5 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,8 @@ install-ca:
install-cb:
install -D -m0755 -t $(DESTDIR)$(BINDIR) rotate-keys
install -D -m0644 -t $(DESTDIR)$(ETCDIR)/simple-pki etc/cb.conf etc/server-ssl.conf
- install -d -m0700 -o http -g http $(DESTDIR)$(ETCDIR)/simple-pki/cb
+ install -d -m0700 -o http -g http $(DESTDIR)$(ETCDIR)/simple-pki/cb \
+ || install -d -m0700 $(DESTDIR)$(ETCDIR)/simple-pki/cb
install -D -m0644 -t $(DESTDIR)$(LIBDIR)/systemd/system rotate-keys.service rotate-keys.timer
clean: