You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jitsi-meet.postrm 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. # postrm script for jitsi-meet
  3. #
  4. # see: dh_installdeb(1)
  5. set -e
  6. # summary of how this script can be called:
  7. # * <postrm> `remove'
  8. # * <postrm> `purge'
  9. # * <old-postrm> `upgrade' <new-version>
  10. # * <new-postrm> `failed-upgrade' <old-version>
  11. # * <new-postrm> `abort-install'
  12. # * <new-postrm> `abort-install' <old-version>
  13. # * <new-postrm> `abort-upgrade' <old-version>
  14. # * <disappearer's-postrm> `disappear' <overwriter>
  15. # <overwriter-version>
  16. # for details, see http://www.debian.org/doc/debian-policy/ or
  17. # the debian-policy package
  18. # Load debconf
  19. . /usr/share/debconf/confmodule
  20. case "$1" in
  21. remove)
  22. if [ -x "/etc/init.d/nginx" ]; then
  23. invoke-rc.d nginx reload
  24. fi
  25. ;;
  26. purge)
  27. db_get jitsi-meet/jvb-hostname
  28. JVB_HOSTNAME=$RET
  29. if [ -n "$RET" ]; then
  30. #. /etc/default/jitsi-videobridge
  31. rm -f /etc/jitsi/meet/$JVB_HOSTNAME-config.js
  32. rm -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf
  33. rm -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
  34. fi
  35. ;;
  36. upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  37. ;;
  38. *)
  39. echo "postrm called with unknown argument \`$1'" >&2
  40. exit 1
  41. ;;
  42. esac
  43. # dh_installdeb will replace this with shell code automatically
  44. # generated by other debhelper scripts.
  45. #DEBHELPER#
  46. db_stop
  47. exit 0