1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-20 15:07:03 +00:00

chasquid: Do a Chdir into the configuration directory

In some cases, it's be useful to have references to directories relative
to the configuration itself.

So this patch makes chasquid do a Chdir into it, so we can assume it in
the rest of the code and config.
This commit is contained in:
Alberto Bertogli
2016-09-18 06:07:59 +01:00
parent f375f276af
commit e9d62e0467
3 changed files with 17 additions and 7 deletions

View File

@@ -27,8 +27,10 @@ function generate_cert() {
function chasquid() {
# HOSTALIASES: so we "fake" hostnames.
# PATH: so chasquid can call test-mda without path issues.
# MDA_DIR: so our test-mda knows where to deliver emails.
HOSTALIASES=${TBASE}/hosts \
PATH=${UTILDIR}:${PATH} \
MDA_DIR=${TBASE}/.mail \
go run ${TBASE}/../../chasquid.go "$@"
}