mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-27 04:12:55 +00:00
21 lines
617 B
Text
21 lines
617 B
Text
post_install() {
|
|
groupadd -g 135 kdm &>/dev/null
|
|
useradd -u 135 -g kdm -d /var/lib/kdm -s /bin/false -r -M kdm &>/dev/null
|
|
chown -R 135:135 var/lib/kdm &>/dev/null
|
|
|
|
genkdmconf --no-old --no-backup &>/dev/null
|
|
}
|
|
|
|
post_upgrade() {
|
|
getent group kdm >/dev/null 2>&1 || groupadd -g 135 kdm &>/dev/null
|
|
getent passwd kdm >/dev/null 2>&1 || useradd -u 135 -g kdm -d /var/lib/kdm -s /bin/false -r -M kdm &>/dev/null
|
|
chown -R 135:135 var/lib/kdm &>/dev/null
|
|
|
|
genkdmconf &>/dev/null
|
|
}
|
|
|
|
post_remove() {
|
|
if [ -d usr/share/apps/kdm/faces ]; then
|
|
rm -r usr/share/apps/kdm/faces
|
|
fi
|
|
}
|