diff --git a/talimatname/genel/l/lightdm/lightdm.kur-kos b/talimatname/genel/l/lightdm/lightdm.kur-kos index 00b766515..c143b76ed 100644 --- a/talimatname/genel/l/lightdm/lightdm.kur-kos +++ b/talimatname/genel/l/lightdm/lightdm.kur-kos @@ -1,8 +1,12 @@ sed -i "s/^id:[3-5]/id:5/" /etc/inittab -userdel lightdm -groupdel lightdm -groupadd -g 800 lightdm -useradd -d /var/lib/lightdm -s /bin/false -u 800 -g 800 lightdm -[ -d /var/lib/lightdm ] && chown lightdm:lightdm /var/lib/lightdm -[ -d /var/lib/lightdm-data ] && chown lightdm:lightdm /var/lib/lightdm-data +if ! getent group lightdm 1>/dev/null 2>/dev/null ; then + groupadd -g 800 lightdm +elif ! getent passwd lightdm 1>/dev/null 2>/dev/null ; then + useradd -d /var/lib/lightdm -s /bin/false -u 800 -g 800 lightdm +fi + +mkdir -p /var/lib/lightdm +chown -Rf lightdm:lightdm /var/lib/lightdm +mkdir -p /var/lib/lightdm-data +chown -Rf lightdm:lightdm /var/lib/lightdm-data [ `mps -kk slim` = "kurulu" ] && mps sil slim diff --git a/talimatname/genel/l/lightdm/talimat b/talimatname/genel/l/lightdm/talimat index aa2ae92cd..afc40b2b4 100644 --- a/talimatname/genel/l/lightdm/talimat +++ b/talimatname/genel/l/lightdm/talimat @@ -56,10 +56,17 @@ derle() { # Fix session-wrapper in config sed -i 's@^.*session-wrapper.*$@session-wrapper=/etc/lightdm/Xsession@' $PKG/etc/lightdm/lightdm.conf - + + if ! getent group lightdm 1>/dev/null 2>/dev/null ; then + groupadd -g 800 lightdm + elif ! getent passwd lightdm 1>/dev/null 2>/dev/null ; then + useradd -d /var/lib/lightdm -s /bin/false -u 800 -g 800 lightdm + fi + mkdir -p $PKG/var/lib/lightdm - + chown lightdm:lightdm $PKG/var/lib/lightdm mkdir -p $PKG/var/lib/lightdm-data + chown lightdm:lightdm $PKG/var/lib/lightdm-data # servis kurulması cd /sources/milis.git/ayarlar/servisler