Fix logic to bind postgres to all network interfaces
ugh, finally solved this
This commit is contained in:
parent
5fcfc91d83
commit
8c556e6176
2 changed files with 10 additions and 16 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2019 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -240,6 +240,10 @@ def sed(c, filename, before, after, limit='', use_sudo=False, backup='.bak',
|
|||
after = after.replace(char, r'\%s' % char)
|
||||
if limit:
|
||||
limit = r'/%s/ ' % limit
|
||||
|
||||
# if replacement text contains single quote chars, must escape them
|
||||
after = after.replace("'", "'\"'\"'")
|
||||
|
||||
context = {
|
||||
'script': r"'%ss/%s/%s/%sg'" % (limit, before, after, flags),
|
||||
'filename': _expand_path(c, filename),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue