summaryrefslogtreecommitdiff
path: root/extra/kdebase-workspace/kdebase-workspace.install
blob: 3a1b2404a2105744fc80699010365ea47a6be6c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}

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
}

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
}