ngircd.postinst 523 B

123456789101112131415161718192021222324252627282930313233
  1. #! /bin/sh
  2. # ngircd Start/stop the Next Generation IRC Server
  3. # Version: ngircd 0.9.2 14-Dec-2005
  4. # Autor: Mario Iseli <admin@marioiseli.com>
  5. set -e
  6. case "$1" in
  7. configure)
  8. if [ ! -d "/var/run/ngircd" ]; then
  9. mkdir /var/run/ngircd
  10. chown irc:irc /var/run/ngircd
  11. chmod 770 /var/run/ngircd
  12. fi
  13. chown -R irc:irc /etc/ngircd
  14. chmod 770 /etc/ngircd
  15. ;;
  16. abort-upgrade|abort-remove|abort-deconfigure)
  17. ;;
  18. *)
  19. echo "ERROR: Postinst called with unknown argument!"
  20. exit 0
  21. ;;
  22. esac
  23. #DEBHELPER#
  24. exit 0