Commit b377560a authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

deploy: Fix bug introduced by escape character

parent 0bb8935c
......@@ -430,7 +430,7 @@ def allow_access_in_db(ip, user="all", method="md5"):
""".format(user, ip, method)
cmd = """
sed -i 's/\(host.**\)md5/\1trust/' /etc/postgresql/8.4/main/pg_hba.conf
sed -i 's/\(host.**\)md5/\\1trust/' /etc/postgresql/8.4/main/pg_hba.conf
try_run("/etc/init.d/postgresql restart")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment