diff options
-rw-r--r-- | debian/libnss-ldapd.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/libnss-ldapd.postinst b/debian/libnss-ldapd.postinst index c7586cd..25b1d3e 100644 --- a/debian/libnss-ldapd.postinst +++ b/debian/libnss-ldapd.postinst @@ -23,7 +23,7 @@ cfg_set() echo "$parameter $value" >> $CONFFILE else # replace the first occurrence of the parameter - sed -i '1,\%^'"$replace"' .*$% s%^'"$replace"' .*$%'"$parameter $value"'%i' "$CONFFILE" + sed -i '1,\|^'"$replace"' .*$| s|^'"$replace"' .*$|'"$parameter $value"'|i' "$CONFFILE" fi # we're done return 0 |