[neon/3rdparty/sddm/Neon/unstable] debian: ensure data is owned correctly in neon addditions

Harald Sitter null at kde.org
Tue Mar 2 16:15:24 GMT 2021


Git commit b20ca34b4f99d3ad48093a6363a79d7f55f4787d by Harald Sitter.
Committed on 02/03/2021 at 16:15.
Pushed by sitter into branch 'Neon/unstable'.

ensure data is owned correctly in neon addditions

debian is doing away with the recursive chown so we need to ensure
ownership is correct in our neon addition blocks

specifically the pulseaudio disabling now uses runuser and the heredoc
catting is then chmod+chown'd

M  +3    -3    debian/sddm.postinst

https://invent.kde.org/neon/3rdparty/sddm/commit/b20ca34b4f99d3ad48093a6363a79d7f55f4787d

diff --git a/debian/sddm.postinst b/debian/sddm.postinst
index 373d7b5..f1eb6d6 100644
--- a/debian/sddm.postinst
+++ b/debian/sddm.postinst
@@ -31,8 +31,8 @@ fi
 # Do not auto-start pulseaudio. It's not necessary for out sddm and unnecesarily
 # causes a bit extra load slowing down startup.
 if [ -d /var/lib/sddm ] && [ ! -d /var/lib/sddm/.config/systemd/user/ ]; then
-    mkdir -p /var/lib/sddm/.config/systemd/user/
-    ln -s /dev/null /var/lib/sddm/.config/systemd/user/pulseaudio.service
+    runuser -u sddm -- mkdir -p /var/lib/sddm/.config/systemd/user/
+    runuser -u sddm -- ln -s /dev/null /var/lib/sddm/.config/systemd/user/pulseaudio.service
 fi
 
 if [ ! -e /var/lib/sddm/state.conf ]; then
@@ -46,8 +46,8 @@ if [ ! -e /var/lib/sddm/state.conf ]; then
 [Last]
 Session=/usr/share/xsessions/plasma.desktop
 CONF
+    chown sddm:sddm /var/lib/sddm/state.conf
     chmod 0644 /var/lib/sddm/state.conf
-    # chown is recursively done below
 fi
 
 if [ -d /var/lib/sddm ]; then


More information about the Neon-commits mailing list