From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- eclass/postgres.eclass | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'eclass/postgres.eclass') diff --git a/eclass/postgres.eclass b/eclass/postgres.eclass index 0d7a1aa50f39..cd9f90fc1c31 100644 --- a/eclass/postgres.eclass +++ b/eclass/postgres.eclass @@ -1,7 +1,6 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -inherit user EXPORT_FUNCTIONS pkg_setup # @ECLASS: postgres.eclass @@ -119,32 +118,6 @@ postgres_check_slot() { fi } -# @FUNCTION: postgres_new_user -# @USAGE: [user [(uid|-1) [(shell|-1) [(homedir|-1) [groups]]]]] -# @DESCRIPTION: -# Creates the "postgres" system group and user -- which is separate from -# the database user -- and, optionally, the developer defined user. There -# are no required parameters. -# -# When given a user to create, it'll be created with the next available -# uid, default shell set to /bin/false, default homedir is /dev/null, -# and added to the "postgres" system group. You can use "-1" to skip any -# parameter except user or groups. -postgres_new_user() { - enewgroup postgres 70 - enewuser postgres 70 /bin/bash /var/lib/postgresql postgres - - if [[ $# -gt 0 ]] ; then - if [[ "$1" = "postgres" ]] ; then - ewarn "Username 'postgres' implied, skipping" - else - local groups=$5 - [[ -n "${groups}" ]] && groups+=",postgres" || groups="postgres" - enewuser "$1" "${2:--1}" "${3:--1}" "${4:--1}" "${groups}" - fi - fi -} - # @FUNCTION: postgres_pkg_setup # @DESCRIPTION: # Initialize environment variable(s) according to the best -- cgit v1.2.3