summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-05-18 13:30:08 +0200
committer Eric Hameleers <alien@slackware.com>2016-05-18 13:30:08 +0200
commit686f614f64993b2aa9969ee1a54e77a038b8e280 (patch)
treea096483762a3af6417914c1dcaf502c713706195
parent80155a73f2db22daad68e926a9a3ed0188287ebf (diff)
downloadktown-686f614f64993b2aa9969ee1a54e77a038b8e280.tar.gz
ktown-686f614f64993b2aa9969ee1a54e77a038b8e280.tar.xz
SDDM user exists in Slackware now; create the homedirectory properly.
-rw-r--r--kde/build/sddm-qt52
-rw-r--r--kde/doinst.sh/sddm-qt510
2 files changed, 7 insertions, 5 deletions
diff --git a/kde/build/sddm-qt5 b/kde/build/sddm-qt5
index 0cfbf08..00750ed 100644
--- a/kde/build/sddm-qt5
+++ b/kde/build/sddm-qt5
@@ -1 +1 @@
-2
+3
diff --git a/kde/doinst.sh/sddm-qt5 b/kde/doinst.sh/sddm-qt5
index d98a226..c1364e2 100644
--- a/kde/doinst.sh/sddm-qt5
+++ b/kde/doinst.sh/sddm-qt5
@@ -43,15 +43,17 @@ You'll have add a 'sddm' user manually. Run these commands (as root):
and select a free value for UID that is below 500 (check /etc/passwd)
Then, run an "upgradepkg --reinstall" of this sddm-qt5 package so that it can run the rest of the install script.
EOT
- else
- chroot . passwd -l sddm > /dev/null
- chroot . gpasswd -a sddm video > /dev/null
fi
fi
# Without a homedirectory, sddm will not start:
chroot . mkdir -p $sddmhome
-chroot . chown -R sddm:sddm $sddmhome > /dev/null
+chroot . chown -R ${sddmuid}:${sddmgid} $sddmhome 1>/dev/null
+
+# Execute this regardless of the pre-existence of the sddm account:
+chroot . usermod -d $sddmhome sddm 1>/dev/null
+chroot . passwd -l sddm 1>/dev/null
+chroot . gpasswd -a sddm video 1>/dev/null
# Generate a new configuration file if it does not exist:
chroot . sddm --example-config > etc/sddm.conf.new