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-turnserver.postrm 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/bin/sh
  2. # postrm script for jitsi-meet-turnserver
  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 || true
  24. fi
  25. if [ -x "/etc/init.d/apache2" ]; then
  26. invoke-rc.d apache2 reload || true
  27. fi
  28. ;;
  29. purge)
  30. rm -rf /etc/turnserver.conf
  31. if [ -x "/etc/init.d/nginx" ]; then
  32. invoke-rc.d nginx reload || true
  33. fi
  34. if [ -x "/etc/init.d/apache2" ]; then
  35. invoke-rc.d apache2 reload || true
  36. fi
  37. # Clear the debconf variable
  38. db_purge
  39. ;;
  40. upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  41. ;;
  42. *)
  43. echo "postrm called with unknown argument \`$1'" >&2
  44. exit 1
  45. ;;
  46. esac
  47. # dh_installdeb will replace this with shell code automatically
  48. # generated by other debhelper scripts.
  49. #DEBHELPER#
  50. db_stop
  51. exit 0