chore: use common prefix for dconf/db/gdm.d files
This commit is contained in:
5
debian/preinst
vendored
5
debian/preinst
vendored
@@ -5,6 +5,11 @@ case "$1" in
|
||||
install)
|
||||
;;
|
||||
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)
|
||||
;;
|
||||
|
||||
@@ -12,7 +12,7 @@ if [ -e /etc/pam.d/gdm-smartcard-sssd-or-password ] ; then
|
||||
fi
|
||||
|
||||
sed -Ei 's/(enable-smartcard-authentication)=.*/\1=false/' \
|
||||
/etc/dconf/db/gdm.d/03-smartcard
|
||||
/etc/dconf/db/gdm.d/01-smartcard
|
||||
dconf update
|
||||
|
||||
systemctl enable sssd.service sssd-pam.socket
|
||||
|
||||
@@ -11,7 +11,7 @@ update-alternatives --set gdm-smartcard \
|
||||
|| { echo >&2 "Cannot switch to PKI login (GDM too old?)" ; exit 1 ; }
|
||||
|
||||
sed -Ei 's/(enable-smartcard-authentication)=.*/\1=true/' \
|
||||
/etc/dconf/db/gdm.d/03-smartcard
|
||||
/etc/dconf/db/gdm.d/01-smartcard
|
||||
dconf update
|
||||
|
||||
cat << EOF
|
||||
|
||||
Reference in New Issue
Block a user