From 311a0a5f16ae1584333f2918ed51a663968e8bc2 Mon Sep 17 00:00:00 2001 From: Mirko Brombin Date: Sun, 22 Sep 2024 17:44:17 +0200 Subject: [PATCH] Update 101-fix-gdm-path.sh --- .../usr/share/init.d/101-fix-gdm-path.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/includes.container/usr/share/init.d/101-fix-gdm-path.sh b/includes.container/usr/share/init.d/101-fix-gdm-path.sh index bbbc389..8da60fc 100644 --- a/includes.container/usr/share/init.d/101-fix-gdm-path.sh +++ b/includes.container/usr/share/init.d/101-fix-gdm-path.sh @@ -1,4 +1,11 @@ #!/bin/bash -echo "Fixing GDM path permissions" -chmod -R 751 /var/lib/gdm3/ +if [ ! -f /var/init.lock.d/101-fix-gdm-path ]; then + echo "Fixing GDM path permissions" + chown -R Debian-gdm:Debian-gdm /var/lib/gdm3/ + chmod -R 751 /var/lib/gdm3/ + mkdir -p /var/init.lock.d/ + touch /var/init.lock.d/101-fix-gdm-path +else + echo "GDM path fix already applied." +fi