rustdesk-server-hbbs.postrm 423 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. SERVICE=rustdesk-hbbs.service
  4. systemctl --system daemon-reload >/dev/null || true
  5. if [ "$1" = "purge" ]; then
  6. rm -rf /var/lib/rustdesk-server/ /var/log/rustdesk-server/rustdesk-hbbs.*
  7. deb-systemd-helper purge "${SERVICE}" >/dev/null || true
  8. deb-systemd-helper unmask "${SERVICE}" >/dev/null || true
  9. fi
  10. if [ "$1" = "remove" ]; then
  11. deb-systemd-helper mask "${SERVICE}" >/dev/null || true
  12. fi
  13. exit 0