PKIUSER is _shellpki on OpenBSD

This commit is contained in:
Victor LABORIE 2018-10-24 15:28:32 +02:00
parent 39bddf87ae
commit 4092850742
1 changed files with 1 additions and 0 deletions

View File

@ -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} !"