From c94dd041726453ebca6a72790d85edd20523a29d Mon Sep 17 00:00:00 2001 From: corsac Date: Sun, 28 Sep 2014 19:57:20 +0000 Subject: [PATCH] * debian/lightdm.postinst: - make sure /var/lib/lightdm always exists. closes: #762218 git-svn-id: svn://anonscm.debian.org/pkg-xfce/goodies/trunk/lightdm@8613 0c9b3bff-18ee-0310-b944-d1aa2700132f --- debian/changelog | 2 ++ debian/lightdm.postinst | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3035543..2e9db04 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ lightdm (1.10.2-2) UNRELEASED; urgency=medium libpam-gnome-keyring is not installed. closes: #683508 * debian/control: - put lipam-systemd before consolekit in alternative. closes: #763187 + * debian/lightdm.postinst: + - make sure /var/lib/lightdm always exists. closes: #762218 -- Yves-Alexis Perez Sun, 28 Sep 2014 21:48:53 +0200 diff --git a/debian/lightdm.postinst b/debian/lightdm.postinst index cc315ef..68f666d 100644 --- a/debian/lightdm.postinst +++ b/debian/lightdm.postinst @@ -21,10 +21,9 @@ if ! getent passwd lightdm >/dev/null; then usermod -s "/bin/false" lightdm fi -if [ -d /var/lib/lightdm ]; then - chown -R lightdm:lightdm /var/lib/lightdm - chmod 0750 /var/lib/lightdm -fi +mkdir -p /var/lib/lightdm +chown -R lightdm:lightdm /var/lib/lightdm +chmod 0750 /var/lib/lightdm # debconf is not a registry, so we only fiddle with the default file if it # does not exist -- 2.39.2