mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
d9f675817e
This contains the culmination of work done privately for a few months, and is intended to be a solid basis for other peoples' experimentations with setting up single-node, home-server setups using Fedora CoreOS.
21 lines
587 B
Bash
Executable File
21 lines
587 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Log to standard error.
|
|
(syslog-ng --no-caps --foreground) &
|
|
(tail -F /var/log/mail.log) &
|
|
|
|
# Prepare configuration files for environment variable substitution.
|
|
ENV_NAMES="`env | awk -F '=' '{printf "$%s ", $1}'`"
|
|
for file in /etc/postfix/*.template; do
|
|
envsubst "${ENV_NAMES}" < "$file" > "`echo $file | awk -F '.template$' '{print $1}'`"
|
|
done
|
|
|
|
# Generate local aliases and virtual maps.
|
|
postalias /etc/postfix/aliases
|
|
|
|
# Ensure local files are correctly configured.
|
|
postfix set-permissions
|
|
|
|
# Run master daemon for Postfix.
|
|
/usr/lib/postfix/sbin/master -c /etc/postfix -d
|