added set_reboot_needed function and use it

This commit is contained in:
levasseur
2022-01-14 16:37:30 +01:00
parent b722107d1c
commit d85e2a819b
6 changed files with 28 additions and 7 deletions

View File

@@ -20,7 +20,7 @@
# * DEFAULT_SHELL: The shell to use when creating new users
# ------------------------------------------------------------------------------
export VER_authnz=0.1.5
export VER_authnz=0.1.6
export DEP_authnz="upgrade_dist"
# Users (from Ldap)
@@ -34,7 +34,7 @@ add_remote_user()
remove_user()
{
# Using sed is more universal than any distro commands
sed -i -e "/^$1/d" /etc/passwd /etc/shadow /etc/group
sed -i -e "/^$1/d" /etc/passwd /etc/shadow /etc/group /etc/gshadow
}
# Create a local user