[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] share/debian-edu-config/tools/gosa-remove: Capture removals of GOsa² user...
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Sun Jan 30 23:11:30 GMT 2022
Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config
Commits:
65a9cc96 by Mike Gabriel at 2022-01-31T00:11:06+01:00
share/debian-edu-config/tools/gosa-remove: Capture removals of GOsa² user templates and ignore them. (Closes: #815042).
- - - - -
2 changed files:
- debian/changelog
- share/debian-edu-config/tools/gosa-remove
Changes:
=====================================
debian/changelog
=====================================
@@ -50,6 +50,8 @@ debian-edu-config (2.12.16) UNRELEASED; urgency=medium
#1003560).
* share/debian-edu-config/tools/setup-roaming: Assure libsss-sudo is installed
on Roaming Workstation. (Closes: #1004605).
+ * share/debian-edu-config/tools/gosa-remove: Capture removals of GOsa² user
+ templates and ignore them. (Closes: #815042).
-- Mike Gabriel <sunweaver at debian.org> Fri, 14 Jan 2022 22:21:27 +0100
=====================================
share/debian-edu-config/tools/gosa-remove
=====================================
@@ -29,6 +29,12 @@ MAXAGE_SEC=$(( $MAXAGE_DAYS*24*60*60 ))
PREFIX=/skole
HOSTNAME=$(hostname -s)
+
+# Obviously a user template was removed. Ignoring.
+echo "$HOMEDIR" | egrep -q "^$PREFIX/$HOSTNAME.*/%uid" && exit 0
+
+# An LDAP user that did not have their home at a place we manage with this script
+# has been removed. This should not happen. Exiting with error.
echo "$HOMEDIR" | egrep -q "^$PREFIX/$HOSTNAME.*$USERID" || exit 1
## move mail directory to home directory
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/65a9cc96c2c667d4b00cabff4ecfbc593201302c
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/65a9cc96c2c667d4b00cabff4ecfbc593201302c
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/20220130/f5092006/attachment-0001.htm>
More information about the debian-edu-commits
mailing list