[SCM] sddm packaging branch, master, updated. debian/0.13.0-1-39-ge4af9fd

Maximiliano Curia maxy at moszumanska.debian.org
Tue Mar 14 08:38:21 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-std/sddm.git;a=commitdiff;h=f33be7d

The following commit has been merged in the master branch:
commit f33be7d56190e8d8e7f34b99176ac3f88a7746a5
Author: Maximiliano Curia <maxy at gnuservers.com.ar>
Date:   Tue Mar 7 17:09:13 2017 +0100

    Create sddm's home dir if not present
---
 debian/sddm.postinst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/sddm.postinst b/debian/sddm.postinst
index 26511d5..3d7cdb7 100644
--- a/debian/sddm.postinst
+++ b/debian/sddm.postinst
@@ -21,6 +21,12 @@ if ! getent passwd sddm >/dev/null; then
     usermod -s "/bin/false"                     sddm
 fi
 
+if [ ! -e /var/lib/sddm ]; then
+    # If sddm was purged while running, the home dir gets removed but the user
+    # remains (as deluser refuses to delete a user that's in use).
+    mkdir -p /var/lib/sddm
+fi
+
 if [ -d /var/lib/sddm ]; then
     chown -R sddm:sddm /var/lib/sddm
     chmod 0750 /var/lib/sddm

-- 
sddm packaging



More information about the pkg-kde-commits mailing list