chore: use common prefix for dconf/db/gdm.d files

This commit is contained in:
Michel Decima
2021-11-02 18:03:22 +01:00
parent 868a8c8a4d
commit 25db8873f7
5 changed files with 7 additions and 2 deletions

5
debian/preinst vendored
View File

@@ -5,6 +5,11 @@ case "$1" in
install) install)
;; ;;
upgrade) upgrade)
# in version > 0.3.3, prefix is 01- everywhere
if dpkg --compare-versions "$2" le 0.3.3 ; then
rm -f /etc/dconf/db/gdm.d/02-logo
rm -f /etc/dconf/db/gdm.d/03-smartcard
fi
;; ;;
abort-upgrade) abort-upgrade)
;; ;;

View File

@@ -12,7 +12,7 @@ if [ -e /etc/pam.d/gdm-smartcard-sssd-or-password ] ; then
fi fi
sed -Ei 's/(enable-smartcard-authentication)=.*/\1=false/' \ sed -Ei 's/(enable-smartcard-authentication)=.*/\1=false/' \
/etc/dconf/db/gdm.d/03-smartcard /etc/dconf/db/gdm.d/01-smartcard
dconf update dconf update
systemctl enable sssd.service sssd-pam.socket systemctl enable sssd.service sssd-pam.socket

View File

@@ -11,7 +11,7 @@ update-alternatives --set gdm-smartcard \
|| { echo >&2 "Cannot switch to PKI login (GDM too old?)" ; exit 1 ; } || { echo >&2 "Cannot switch to PKI login (GDM too old?)" ; exit 1 ; }
sed -Ei 's/(enable-smartcard-authentication)=.*/\1=true/' \ sed -Ei 's/(enable-smartcard-authentication)=.*/\1=true/' \
/etc/dconf/db/gdm.d/03-smartcard /etc/dconf/db/gdm.d/01-smartcard
dconf update dconf update
cat << EOF cat << EOF