X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=setup%2Finit_vars;fp=setup%2Finit_vars;h=cd4a3f0bc4adf46a801d92a6ed92b5c93f9b16b7;hb=890acc3c99565cfa61f24c75c49db4eeacc71fbb;hp=0000000000000000000000000000000000000000;hpb=2c3264544ddd44b4f90730296c909ac7d3b3fe03;p=dak.git diff --git a/setup/init_vars b/setup/init_vars new file mode 100644 index 00000000..cd4a3f0b --- /dev/null +++ b/setup/init_vars @@ -0,0 +1,20 @@ +#!/bin/sh + +# The following variables are required by these scripts: + +## DAKBASE: The directory in which the dak install is to exist +DAKBASE=${DAKBASE:-/srv/dak} +export DAKBASE + +## DAKFQDN: The fqdn of the dak host +DAKFQDN=${DAKFQDN:-$(hostname -f)} +export DAKFQDN + +## DAKHOST: The short name used for the dak host +DAKHOST=${DAKHOST:-$(hostname)} +export DAKHOST + +## PGDATABASE: The postgresql database to use +## (other PG* variables can also be exported by the user if needed) +PGDATABASE=${PGDATABASE:-projectb} +export PGDATABASE