Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 568322 | Differences between
and this patch

Collapse All | Expand All

(-)my_mongodb-3.2.0p2.ebuild (-2 / +15 lines)
Lines 67-74 Link Here
67
               die "Terminating ebuild."
67
               die "Terminating ebuild."
68
       fi
68
       fi
69
 
69
 
70
	enewgroup mongodb
70
        # If the user mongodb already exists we do not neeed
71
	enewuser mongodb -1 -1 /var/lib/${PN} mongodb
71
        # to add these users to the system. If the user and
72
        # group do not exist, we create them.
73
74
        getent group mongodb > /dev/null 2&>1
75
76
        if [ "$?" -eq "1" ]; then
77
       	     enewgroup mongodb
78
        fi
79
80
        getent passwd mongodb > /dev/null 2&>1
81
82
        if [ "$?" -eq "1" ]; then
83
             enewuser mongodb -1 -1 /var/lib/${PN} mongodb
84
        fi
72
85
73
	# Maintainer notes
86
	# Maintainer notes
74
	#
87
	#

Return to bug 568322