forked from Lainports/freebsd-ports
prefer /usr/sbin/nologin than /sbin/nologin when creating user cyrus.
Requested by: nork
This commit is contained in:
parent
febfac9141
commit
026ebc1dee
6 changed files with 18 additions and 6 deletions
|
|
@ -42,7 +42,9 @@ cyrus_conf() {
|
|||
modify_cyrus_user() {
|
||||
USER=cyrus
|
||||
PW=/usr/sbin/pw
|
||||
if [ -x /sbin/nologin ]; then
|
||||
if [ -x /usr/sbin/nologin ]; then
|
||||
shell=/usr/sbin/nologin
|
||||
elif [ -x /sbin/nologin ]; then
|
||||
shell=/sbin/nologin
|
||||
else
|
||||
shell=/nonexistent
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ checkfile() {
|
|||
modify_cyrus_user() {
|
||||
USER=${CYRUS_USER}
|
||||
PW=/usr/sbin/pw
|
||||
if [ -x /sbin/nologin ]; then
|
||||
if [ -x /usr/sbin/nologin ]; then
|
||||
shell=/usr/sbin/nologin
|
||||
elif [ -x /sbin/nologin ]; then
|
||||
shell=/sbin/nologin
|
||||
else
|
||||
shell=/nonexistent
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ checkfile() {
|
|||
modify_cyrus_user() {
|
||||
USER=${CYRUS_USER}
|
||||
PW=/usr/sbin/pw
|
||||
if [ -x /sbin/nologin ]; then
|
||||
if [ -x /usr/sbin/nologin ]; then
|
||||
shell=/usr/sbin/nologin
|
||||
elif [ -x /sbin/nologin ]; then
|
||||
shell=/sbin/nologin
|
||||
else
|
||||
shell=/nonexistent
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ checkfile() {
|
|||
modify_cyrus_user() {
|
||||
USER=${CYRUS_USER}
|
||||
PW=/usr/sbin/pw
|
||||
if [ -x /sbin/nologin ]; then
|
||||
if [ -x /usr/sbin/nologin ]; then
|
||||
shell=/usr/sbin/nologin
|
||||
elif [ -x /sbin/nologin ]; then
|
||||
shell=/sbin/nologin
|
||||
else
|
||||
shell=/nonexistent
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ checkfile() {
|
|||
modify_cyrus_user() {
|
||||
USER=${CYRUS_USER}
|
||||
PW=/usr/sbin/pw
|
||||
if [ -x /sbin/nologin ]; then
|
||||
if [ -x /usr/sbin/nologin ]; then
|
||||
shell=/usr/sbin/nologin
|
||||
elif [ -x /sbin/nologin ]; then
|
||||
shell=/sbin/nologin
|
||||
else
|
||||
shell=/nonexistent
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@ create_user() {
|
|||
GROUP=${CYRUS_GROUP}
|
||||
PW=/usr/sbin/pw
|
||||
|
||||
if [ -x /sbin/nologin ]; then
|
||||
if [ -x /usr/sbin/nologin ]; then
|
||||
shell=/usr/sbin/nologin
|
||||
elif [ -x /sbin/nologin ]; then
|
||||
shell=/sbin/nologin
|
||||
else
|
||||
shell=/nonexistent
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue