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-web-config.postrm 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #!/bin/sh
  2. # postrm script for jitsi-meet-web-config
  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. if [ -x "/etc/init.d/apache2" ]; then
  26. invoke-rc.d apache2 reload
  27. fi
  28. ;;
  29. purge)
  30. db_get jitsi-meet/jvb-hostname
  31. JVB_HOSTNAME=$RET
  32. if [ -n "$RET" ]; then
  33. rm -f /etc/jitsi/meet/$JVB_HOSTNAME-config.js
  34. rm -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf
  35. rm -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf
  36. rm -f /etc/apache2/sites-available/$JVB_HOSTNAME.conf
  37. rm -f /etc/apache2/sites-enabled/$JVB_HOSTNAME.conf
  38. rm -f /etc/jitsi/videobridge/$JVB_HOSTNAME.jks
  39. rm -f /etc/jitsi/videobridge/$JVB_HOSTNAME.p12
  40. rm -f /etc/jitsi/meet/$JVB_HOSTNAME.key
  41. rm -f /etc/jitsi/meet/$JVB_HOSTNAME.crt
  42. fi
  43. # Clear the debconf variable
  44. db_purge
  45. ;;
  46. upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  47. ;;
  48. *)
  49. echo "postrm called with unknown argument \`$1'" >&2
  50. exit 1
  51. ;;
  52. esac
  53. # dh_installdeb will replace this with shell code automatically
  54. # generated by other debhelper scripts.
  55. #DEBHELPER#
  56. db_stop
  57. exit 0