quassel.install 381 B

12345678910111213141516
  1. post_install() {
  2. useradd -r -s /bin/sh -d /var/lib/quassel quassel
  3. mkdir -p /var/lib/quassel && chown -R quassel:quassel /var/lib/quassel
  4. if [ -x /usr/bin/xdg-icon-resource ]; then
  5. /usr/bin/xdg-icon-resource forceupdate --theme hicolor &> /dev/null
  6. fi
  7. }
  8. pre_remove() {
  9. systemctl disable quassel.service
  10. systemctl stop quassel.service
  11. }
  12. post_remove() {
  13. userdel quassel
  14. }