blob: c52c06417ebbc6719dadb882f55baa7013b679a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
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
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
update-desktop-database -q
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
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
genkdmconf &>/dev/null
}
post_remove() {
if getent passwd kdm >/dev/null 2>&1; then
userdel kdm
fi
if getent group kdm >/dev/null 2>&1; then
groupdel kdm
fi
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
if [ -d usr/share/apps/kdm/faces ]; then
rm -r usr/share/apps/kdm/faces
fi
}
|