From 9851e90f0a8e4cbfa680ce278bdd8812f92699fa Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Mon, 28 Dec 2020 09:52:16 -0500 Subject: acct-user/root: do not lock the account when removed Signed-off-by: Mike Gilbert --- acct-user/root/root-0-r1.ebuild | 20 ++++++++++++++++++++ acct-user/root/root-0.ebuild | 15 --------------- 2 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 acct-user/root/root-0-r1.ebuild delete mode 100644 acct-user/root/root-0.ebuild (limited to 'acct-user') diff --git a/acct-user/root/root-0-r1.ebuild b/acct-user/root/root-0-r1.ebuild new file mode 100644 index 000000000000..f85c77b4cd56 --- /dev/null +++ b/acct-user/root/root-0-r1.ebuild @@ -0,0 +1,20 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +ACCT_USER_ID=0 +ACCT_USER_ENFORCE_ID=yes +ACCT_USER_SHELL="/bin/bash" +ACCT_USER_HOME="/root" +ACCT_USER_HOME_PERMS=0700 +ACCT_USER_GROUPS=( root ) + +acct-user_add_deps + +pkg_prerm() { + # Don't lock out the superuser + : +} diff --git a/acct-user/root/root-0.ebuild b/acct-user/root/root-0.ebuild deleted file mode 100644 index a5fb1604d97e..000000000000 --- a/acct-user/root/root-0.ebuild +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit acct-user - -ACCT_USER_ID=0 -ACCT_USER_ENFORCE_ID=yes -ACCT_USER_SHELL="/bin/bash" -ACCT_USER_HOME="/root" -ACCT_USER_HOME_PERMS=0700 -ACCT_USER_GROUPS=( root ) - -acct-user_add_deps -- cgit v1.2.3-65-gdbad