Fix logic to bind postgres to all network interfaces

ugh, finally solved this
This commit is contained in:
Lance Edgar 2023-01-07 17:22:21 -06:00
parent 5fcfc91d83
commit 8c556e6176
2 changed files with 10 additions and 16 deletions

View file

@ -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),