From 188a1725dcd9afdabf7f9fee15d5012bfefe82a3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:24:37 +0100 Subject: [PATCH] posttrans: creare /etc/sddm.conf if missing [release 4.91.0-2mamba;Mon Jul 22 2019] --- livecd-tools.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/livecd-tools.spec b/livecd-tools.spec index 47c4925..d9e4702 100644 --- a/livecd-tools.spec +++ b/livecd-tools.spec @@ -5,7 +5,7 @@ %define lpadmin_gid 65032 Name: livecd-tools Version: 4.91.0 -Release: 1mamba +Release: 2mamba Summary: Live cd environment and utilities Group: System/Tools Vendor: openmamba @@ -156,6 +156,12 @@ if [ $1 -eq 1 ]; then if [ -e /etc/sddm.conf ]; then sed -i "s|User=.*|User=liveuser|;s|Session=.*|Session=plasma|;s|MinimumUid=.*|MinimumUid=999|;s|Relogin=.*|Relogin=true|" \ /etc/sddm.conf + else + cat > /etc/sddm.conf << _EOF +[Autologin] +User=liveuser +Session=plasma +_EOF fi # Configure GDM for autologin if [ -e /etc/gdm/custom.conf ]; then @@ -198,6 +204,9 @@ fi %attr(-,liveuser,users) /home/liveuser/.kde4/share/config/* %changelog +* Mon Jul 22 2019 Silvan Calarco 4.91.0-2mamba +- posttrans: creare /etc/sddm.conf if missing + * Sun Jun 30 2019 Silvan Calarco 4.91.0-1mamba - update to 4.91.0