Bernd Wurst commited on 2008-03-08 06:48:47
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.
... | ... |
@@ -119,7 +119,7 @@ etc_courier_chg() { |
119 | 119 |
file="${1}" ; key="${2}" ; value="${3}" ; section="${4}" |
120 | 120 |
[ -z "${section}" ] && section="${2}" |
121 | 121 |
grep -q "${key}" "${file}" && elog "Changing ${file}: ${key} to ${value}" |
122 |
- sed -i -e"/\#\#NAME: ${section}/,+20 s|${key}=.*|${key}=\"${value}\"|g" ${file} |
|
122 |
+ sed -i -e"/\#\#NAME: ${section}/,+30 s|${key}=.*|${key}=\"${value}\"|g" ${file} |
|
123 | 123 |
} |
124 | 124 |
|
125 | 125 |
|
126 | 126 |