summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-13 23:04:00 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-03-15 16:43:28 +0100
commit3c1354662cde382fd31bab661134828121b8acc9 (patch)
tree80671b24706e56dbc8167ebb95f30b78a0160569 /eclass/postgres.eclass
parentdev-db/pgpool2: migrate to glep-81 (diff)
downloadgentoo-3c1354662cde382fd31bab661134828121b8acc9.tar.gz
gentoo-3c1354662cde382fd31bab661134828121b8acc9.tar.bz2
gentoo-3c1354662cde382fd31bab661134828121b8acc9.zip
eclass/postgres.eclass: migrate to glep-81
Closes: https://github.com/gentoo/gentoo/pull/24185 Closes: https://bugs.gentoo.org/802498 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'eclass/postgres.eclass')
-rw-r--r--eclass/postgres.eclass27
1 files changed, 0 insertions, 27 deletions
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