From 40928507429516b2417427e77a09490094e4962d Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Wed, 24 Oct 2018 15:28:32 +0200 Subject: [PATCH] PKIUSER is _shellpki on OpenBSD --- shellpki.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/shellpki.sh b/shellpki.sh index 523a98e..9624f0d 100755 --- a/shellpki.sh +++ b/shellpki.sh @@ -402,6 +402,7 @@ main() { # TODO : override with /etc/default/shellpki CONFFILE="/etc/shellpki/openssl.cnf" PKIUSER="shellpki" + [ "$(uname)" == "OpenBSD" ] && PKIUSER="_shellpki" [ "${USER}" != "root" ] || [ "${USER}" != "${PKIUSER}" ] || error "Please become root before running ${0} !"