summaryrefslogtreecommitdiff
path: root/extra/kdebase-workspace/kdebase-workspace.install
blob: f7d6d305b705c705adaab39c7ee28a6c681ce095 (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
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
}

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
}

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
}