diff options
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 |
commit | 686f614f64993b2aa9969ee1a54e77a038b8e280 (patch) | |
tree | a096483762a3af6417914c1dcaf502c713706195 /kde/doinst.sh/sddm-qt5 | |
parent | 80155a73f2db22daad68e926a9a3ed0188287ebf (diff) | |
download | ktown-686f614f64993b2aa9969ee1a54e77a038b8e280.tar.gz ktown-686f614f64993b2aa9969ee1a54e77a038b8e280.tar.xz |
SDDM user exists in Slackware now; create the homedirectory properly.
Diffstat (limited to '')
-rw-r--r-- | kde/doinst.sh/sddm-qt5 | 10 |
1 files changed, 6 insertions, 4 deletions
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 |