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
|
# TODO : override with /etc/default/shellpki
|
||||||
CONFFILE="/etc/shellpki/openssl.cnf"
|
CONFFILE="/etc/shellpki/openssl.cnf"
|
||||||
PKIUSER="shellpki"
|
PKIUSER="shellpki"
|
||||||
|
[ "$(uname)" == "OpenBSD" ] && PKIUSER="_shellpki"
|
||||||
|
|
||||||
[ "${USER}" != "root" ] || [ "${USER}" != "${PKIUSER}" ] || error "Please become root before running ${0} !"
|
[ "${USER}" != "root" ] || [ "${USER}" != "${PKIUSER}" ] || error "Please become root before running ${0} !"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue