diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-08-25 13:52:26 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-08-25 13:52:26 +0200 |
commit | 60174925720ea76165d990cc52f3cf550600fc95 (patch) | |
tree | 80ce352600d6dc1da72a9f93571d1d9ced9b2271 | |
parent | 0dcbb114265d3df57534ae9966dbd8c9ef0afeab (diff) |
change regular expression boundry to | instead of % because it is less likely to appear with normal use
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@362 ef36b2f9-881f-0410-afb5-c4e39611909c
-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 |