From 60174925720ea76165d990cc52f3cf550600fc95 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 25 Aug 2007 11:52:26 +0000 Subject: 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 --- debian/libnss-ldapd.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3