Browse Source

Sanitize environment variable names (like affinity:container)

master
Fábio Kaiser Rauber 6 years ago
parent
commit
0b8ba6471d
  1. 3
      conf/postfix-service.sh

3
conf/postfix-service.sh

@ -7,7 +7,8 @@ function log {
function serviceConf {
# Substitute configuration
for VARIABLE in `env | cut -f1 -d=`; do
sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /etc/postfix/*.cf
VAR=${VARIABLE//:/_}
sed -i "s={{ $VAR }}=${!VAR}=g" /etc/postfix/*.cf
done
# Override Postfix configuration

Loading…
Cancel
Save