[debian-edu-commits] [Git][debian-edu/debian-edu-config][bullseye] debian/debian-edu-config.preinst: Make .keytab file moval more...
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Tue Mar 22 09:50:34 GMT 2022
Mike Gabriel pushed to branch bullseye at Debian Edu / debian-edu-config
Commits:
711666b2 by Mike Gabriel at 2022-03-22T10:48:50+01:00
debian/debian-edu-config.preinst: Make .keytab file moval more robust/idempotent. Don't attempt moving .keytab files if /etc/debian-edu/host-keytabs is already a symlink.
- - - - -
1 changed file:
- debian/debian-edu-config.preinst
Changes:
=====================================
debian/debian-edu-config.preinst
=====================================
@@ -51,7 +51,9 @@ upgrade)
# We have to move the .keytab files manually, because they are not owned
# by debian-edu-config.
if dpkg --compare-versions "$2" le "2.11.56+deb11u4"; then
- if [ -d /etc/debian-edu/host-keytabs ] && find /etc/debian-edu/host-keytabs/* 1>/dev/null 2>/dev/null; then
+ if [ -d /etc/debian-edu/host-keytabs ] && \
+ [ ! -h /etc/debian-edu/host-keytabs ] && \
+ find /etc/debian-edu/host-keytabs/* 1>/dev/null 2>/dev/null; then
mkdir -p /var/lib/debian-edu/host-keytabs/
mv /etc/debian-edu/host-keytabs/*.keytab /var/lib/debian-edu/host-keytabs/
fi
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/711666b2e85b917c5f3890acd14372b306be6a69
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/711666b2e85b917c5f3890acd14372b306be6a69
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/20220322/249e59d4/attachment.htm>
More information about the debian-edu-commits
mailing list