From c5fe79e3c01d97dda3448eca34ef5ea342193735 Mon Sep 17 00:00:00 2001 From: freaj Date: Mon, 30 Mar 2015 11:39:16 +0200 Subject: sddm-consolekit: add new package to [pcr] --- pcr/sddm-consolekit/sddm.install | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pcr/sddm-consolekit/sddm.install (limited to 'pcr/sddm-consolekit/sddm.install') diff --git a/pcr/sddm-consolekit/sddm.install b/pcr/sddm-consolekit/sddm.install new file mode 100644 index 000000000..904a73ac2 --- /dev/null +++ b/pcr/sddm-consolekit/sddm.install @@ -0,0 +1,24 @@ +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 +} + +post_remove() { + if getent passwd sddm >/dev/null; then + userdel sddm + fi + if getent group sddm >/dev/null; then + groupdel sddm + fi +} -- cgit v1.2.3-54-g00ecf