lightdm
This commit is contained in:
parent
76136a53ba
commit
c692643c46
|
@ -1,8 +1,12 @@
|
|||
sed -i "s/^id:[3-5]/id:5/" /etc/inittab
|
||||
userdel lightdm
|
||||
groupdel lightdm
|
||||
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
|
||||
[ -d /var/lib/lightdm ] && chown lightdm:lightdm /var/lib/lightdm
|
||||
[ -d /var/lib/lightdm-data ] && chown lightdm:lightdm /var/lib/lightdm-data
|
||||
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
|
||||
|
|
|
@ -57,9 +57,16 @@ derle() {
|
|||
# Fix session-wrapper in config
|
||||
sed -i 's@^.*session-wrapper.*$@session-wrapper=/etc/lightdm/Xsession@' $PKG/etc/lightdm/lightdm.conf
|
||||
|
||||
mkdir -p $PKG/var/lib/lightdm
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue