Merge pull request #7 from turboaaa/patch-1
Replace add_config_value with native postconf
This commit is contained in:
commit
6342b77d16
1 changed files with 1 additions and 3 deletions
4
run.sh
4
run.sh
|
@ -10,9 +10,7 @@ function add_config_value() {
|
|||
[ "${value}" == "" ] && echo "ERROR: No value set !!" && exit 1
|
||||
|
||||
echo "Setting configuration option ${key} with value: ${value}"
|
||||
sed -i -e "/^#\?\(\s*${key}\s*=\s*\).*/{s//\1${value}/;:a;n;:ba;q}" \
|
||||
-e "\$a${key}=${value}" \
|
||||
${config_file}
|
||||
postconf -e "${key} = ${value}"
|
||||
}
|
||||
|
||||
[ -z "${SMTP_SERVER}" ] && echo "SMTP_SERVER is not set" && exit 1
|
||||
|
|
Loading…
Reference in a new issue