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.

16 lines
491 B

  1. #!/bin/bash
  2. ## When writing relation script, remember:
  3. ## - they should be idempotents
  4. ## - they can be launched while the dockers is already up
  5. ## - they are launched from the host
  6. ## - the target of the link is launched first, and get a chance to ``relation-set``
  7. ## - both side of the scripts get to use ``relation-get``.
  8. relation-set type postgres || {
  9. err "Could not set relation ${WHITE}type${NORMAL} to 'postgres'."
  10. exit 1
  11. }
  12. . hooks/postgres_database-relation-joined