mate-user-admin: pull adduser regex from adduser.conf file

This commit is contained in:
Luis Guzmán 2025-10-11 02:50:20 -06:00 committed by Ark74
parent a7f01aa09b
commit ca516c71dc
3 changed files with 82 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright (C) 2024 Luis Guzmán <ark@switnet.org>
# Copyright (C) 2025 Luis Guzmán <ark@switnet.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=2
VERSION=3
EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu noble universe'
. ./config
@ -26,9 +26,11 @@ EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu noble universe'
export FULLVERSION="$(sed 's|build3||' <<< $FULLVERSION)"
# Add cracklib-runtime dependency to debian/control
patch --no-backup-if-mismatch -p1 < $DATA/add-cracklib-runtime-as-dependency.patch
apply_patch_changes
changelog "Added cracklib-runtime dependency.
Added custom implementation to use adduser regex for user creation"
changelog "Imported into Trisquel Aramo | Added cracklib-runtime dependency."
head -n1 debian/changelog | grep -q build && echo "error: update upstream version" && exit
package