- post_install() {
- useradd -r -s /bin/sh -d /var/lib/quassel quassel
- mkdir -p /var/lib/quassel && chown -R quassel:quassel /var/lib/quassel
- if [ -x /usr/bin/xdg-icon-resource ]; then
- /usr/bin/xdg-icon-resource forceupdate --theme hicolor &> /dev/null
- fi
- }
- pre_remove() {
- systemctl disable quassel.service
- systemctl stop quassel.service
- }
- post_remove() {
- userdel quassel
- }
|