Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

jitsi-meet-prosody.postrm 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/bin/sh
  2. # postrm script for jitsi-meet-prosody
  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/prosody" ]; then
  23. invoke-rc.d prosody reload
  24. fi
  25. ;;
  26. purge)
  27. db_get jitsi-meet-prosody/jvb-hostname
  28. JVB_HOSTNAME=$RET
  29. if [ -n "$RET" ]; then
  30. rm -f /etc/prosody/conf.avail/$JVB_HOSTNAME.cfg.lua
  31. rm -f /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua
  32. # clean up generated certificates
  33. rm -f /etc/prosody/certs/$JVB_HOSTNAME.crt
  34. rm -f /etc/prosody/certs/$JVB_HOSTNAME.key
  35. rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.crt
  36. rm -f /etc/prosody/certs/auth.$JVB_HOSTNAME.key
  37. rm -rf /var/lib/prosody/auth.$JVB_HOSTNAME.*
  38. rm -rf /var/lib/prosody/$JVB_HOSTNAME.*
  39. fi
  40. # Clear the debconf variable
  41. db_purge
  42. ;;
  43. upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  44. ;;
  45. *)
  46. echo "postrm called with unknown argument \`$1'" >&2
  47. exit 1
  48. ;;
  49. esac
  50. # dh_installdeb will replace this with shell code automatically
  51. # generated by other debhelper scripts.
  52. #DEBHELPER#
  53. db_stop
  54. exit 0