ganglia.install 804 B

12345678910111213141516171819202122232425262728
  1. # Arg 1: the new package version
  2. post_install() {
  3. # Create user and group
  4. systemd-sysusers ganglia.conf
  5. # Required at this stage to ensure ganglia user & group are available
  6. install -d -o ganglia -g ganglia /var/lib/ganglia{,/rrds}
  7. }
  8. # Arg 1: the new package version
  9. # Arg 2: the old package version
  10. post_upgrade() {
  11. if [ "`vercmp $2 3.4.0`" -lt 0 ]; then
  12. echo "WARNING: The ganglia package has been split. If you use the" \
  13. "web frontend, you'll need to install the ganglia-web package as well."
  14. fi
  15. }
  16. # Arg 1: the old package version
  17. post_remove() {
  18. echo "This package does not automatically remove the ganglia data "
  19. echo "directory (default /var/lib/ganglia) or ganglia user. Please do so "
  20. echo "manually if they are no longer required."
  21. }
  22. # vim:set ts=2 sw=2 et: