This commit is contained in:
milisbir 2018-08-31 01:36:31 +03:00
parent 76136a53ba
commit c692643c46
2 changed files with 19 additions and 8 deletions

View File

@ -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

View File

@ -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