# This is a default template for a post-install scriptlet. # Uncomment only required functions and remove any functions # you don't need (and this header). post_install() { if [ "$(getent group sddm | cut -d ":" -f 3)" != "64" ]; then groupadd -g 64 sddm fi if [ "$(getent passwd sddm | cut -d ":" -f 3)" != "64" ]; then useradd -c "sddm Daemon" \ -d /var/lib/sddm \ -u 64 -g sddm \ -s /bin/false sddm fi systemctl enable sddm } post_upgrade() { post_install } post_remove() { systemctl disable sddm groupdel sddm 2>/dev/null || true userdel sddm 2>/dev/null || true }