PKIUSER is _shellpki on OpenBSD
This commit is contained in:
parent
39bddf87ae
commit
4092850742
|
@ -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} !"
|
||||
|
||||
|
|
Loading…
Reference in a new issue