[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] run-at-firstboot: Initialize first user's mailbox only when logging into Main-Server
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Fri Sep 4 22:27:54 BST 2026
Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config
Commits:
a6cd1123 by Mike Gabriel at 2026-09-04T21:27:45+00:00
run-at-firstboot: Initialize first user's mailbox only when logging into Main-Server
- - - - -
1 changed file:
- share/debian-edu-config/tools/run-at-firstboot
Changes:
=====================================
share/debian-edu-config/tools/run-at-firstboot
=====================================
@@ -122,10 +122,11 @@ fi
# Send mail to the first user to avoid the Dovecot permission pitfall
# also in this special case. It doesn't seem to work during installation,
# because Exim4 needs to grab information from LDAP which fails at that time.
-FIRSTUSER=$(grep -1 first-user-name /var/cache/debconf/config.dat | grep Value | cut -d' ' -f2)
+if echo "$PROFILE" | grep -q Main-Server ; then
+ FIRSTUSER=$(grep -1 first-user-name /var/cache/debconf/config.dat | grep Value | cut -d' ' -f2)
-if [ ! -d /var/mail/"$FIRSTUSER" ] ; then
- cat << EOF | /usr/lib/sendmail $FIRSTUSER
+ if [ ! -d /var/mail/"$FIRSTUSER" ] ; then
+ cat << EOF | /usr/lib/sendmail $FIRSTUSER
Subject: Welcome to the mail-system
Hello $FIRSTUSER,
@@ -135,7 +136,8 @@ welcome to the mail-system.
(Sent from the Debian Edu first boot script.)
EOF
- logger -t exim-create-environment -p notice Sent mail to first-user.
+ logger -t exim-create-environment -p notice Sent mail to first-user.
+ fi
fi
# Create first user's Samba account. The smbpasswd command fails inside d-i
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/a6cd1123b89d7a20b7afce927e02951c8f5dd08e
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/a6cd1123b89d7a20b7afce927e02951c8f5dd08e
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20260904/caae163f/attachment-0001.htm>
More information about the debian-edu-commits
mailing list