123456789101112131415161718192021222324252627282930313233 |
- #! /usr/bin/env bash
-
- replace_var()
- {
- file="${1}"
- var="${2}"
- sed -e "s?${var}?${!var}?g" -i "${file}"
- }
-
- replace_vars()
- {
- file="${1}"
- for var in $(cat /etc/vars-vars)
- do
- replace_var "${file}" "${var}"
- done
- }
-
- replace_files()
- {
- for file in $(cat /etc/vars-files)
- do
- replace_vars "${file}"
- done
- }
-
- replace_files
-
- rm -f /var/run/dovecot/master.pid &&
- rm -f /var/run/exim4/exim.pid &&
- service exim4 start &&
-
- dovecot -F
|