init_vars 529 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # The following variables are required by these scripts:
  3. ## DAKBASE: The directory in which the dak install is to exist
  4. DAKBASE=${DAKBASE:-/srv/dak}
  5. export DAKBASE
  6. ## DAKFQDN: The fqdn of the dak host
  7. DAKFQDN=${DAKFQDN:-$(hostname -f)}
  8. export DAKFQDN
  9. ## DAKHOST: The short name used for the dak host
  10. DAKHOST=${DAKHOST:-$(hostname)}
  11. export DAKHOST
  12. ## PGDATABASE: The postgresql database to use
  13. ## (other PG* variables can also be exported by the user if needed)
  14. PGDATABASE=${PGDATABASE:-projectb}
  15. export PGDATABASE