Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > c6ee9fd9552e7c775a8eec653635d91f > scriptlet

lightdm-1.32.0-1.mga9.armv7hl.rpm

PREIN

/bin/sh
/usr/share/rpm-helper/add-user lightdm $1 lightdm /var/lib/lightdm /sbin/nologin

PREUN

/bin/sh

 
if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then 
    # Package removal, not upgrade 
    /usr/lib/systemd/systemd-update-helper remove-system-units lightdm.service || : 
fi

POSTIN

/bin/sh
/usr/share/rpm-helper/create-file lightdm $1 /var/log/lightdm/lightdm.log root root 0600 

/usr/share/rpm-helper/create-file lightdm $1 /var/log/lightdm/lightdm.log.old root root 0600 


 
if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then 
    # Initial installation 
    /usr/lib/systemd/systemd-update-helper install-system-units lightdm.service || : 
fi

Triggers

lightdm < 1.18.3-3

/bin/sh
/usr/bin/perl -p -i -e 's/\[SeatDefaults\]/\[Seat:*\]/' \
	/etc/lightdm/lightdm.conf \
	/etc/lightdm/lightdm.conf.d/*.conf

homedir=$(getent passwd lightdm |cut -d: -f6)
if [ x"${homedir}" != x"/var/lib/lightdm" ]; then
	/usr/sbin/usermod lightdm -d /var/lib/lightdm
fi