[debian-edu-commits] [Git][debian-edu/debian-edu-install][master] Adjust debian-edu-testsuite to new UID/GID of first user

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Mon Sep 25 16:47:31 BST 2023



Mike Gabriel pushed to branch master at Debian Edu / debian-edu-install


Commits:
87ce403f by Guido Berhoerster at 2023-09-25T10:06:05+02:00
Adjust debian-edu-testsuite to new UID/GID of first user

This has been changed to UID/GID 2000.
Also use getent passwd for obtaining the user account information instead of
relying on grep which might match the wrong user.

- - - - -


1 changed file:

- debian-edu-testsuite


Changes:

=====================================
debian-edu-testsuite
=====================================
@@ -47,9 +47,9 @@ run_testsuite() {
 
     if [ -s $errfile ] ; then
     content=$(cat $errfile)
-    # Send error report via mail to first user (who has uid 1000 by default).
-    firstuser=$(getent passwd | grep 1000 | cut -d':' -f1)
-    username=$(getent passwd | grep 1000 | cut -d':' -f5)
+    # Send error report via mail to first user (who has uid 2000 by default).
+    firstuser=$(getent passwd 2000 | cut -d':' -f1)
+    username=$(getent passwd 2000 | cut -d':' -f5)
 
             cat << EOF | /usr/lib/sendmail $firstuser
 Subject: Test status



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-install/-/commit/87ce403f2f03b0a70d8b56884c4f52e666a0c875

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-install/-/commit/87ce403f2f03b0a70d8b56884c4f52e666a0c875
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20230925/bc472914/attachment-0001.htm>


More information about the debian-edu-commits mailing list