use m4 for config generation
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-12-21 12:46:39 +01:00
parent 0bf33c582f
commit 8464bf1f41
5 changed files with 79 additions and 56 deletions

View File

@ -1,15 +1,4 @@
#!/bin/bash
#!/bin/sh
rm exim.conf
cat exim.conf.tmpl \
| sed -e 's/%HOSTNAME%/'$HOSTNAME'/' \
-e 's#%RELAYNETS%#'$RELAYNETS'#' \
-e 's/%LOCALMAILNAME%/'$LOCALMAILNAME'/' \
-e 's/%SMARTHOST%/'$SMARTHOST'/' \
-e 's/%SMARTHOST_USER%/'$SMARTHOST_USER'/' \
-e 's/%SMARTHOST_PASS%/'$SMARTHOST_PASS'/' \
> exim.conf
exim -bd -q15m -v
m4 exim.conf.m4 > exim.conf && exim -bd -q15m -v