summaryrefslogtreecommitdiff
path: root/pcr/sddm-consolekit/sddm.install
blob: f078c1466ff0bd4bb7315a13c4ad0dfc30873af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
	if ! getent group sddm > /dev/null; then
		groupadd --system sddm
	fi
	if ! getent passwd sddm > /dev/null; then
		useradd -c "Simple Desktop Display Manager" --system -d /var/lib/sddm -s /usr/bin/nologin -g sddm sddm
		passwd -l sddm > /dev/null
	fi
	mkdir -p /var/lib/sddm
	chown -R sddm:sddm /var/lib/sddm > /dev/null
}

post_upgrade() {
	post_install $1
}