Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 09ca27d

Browse files
committed
Fix: Correctly escape psql command.
1 parent 025d509 commit 09ca27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/docker_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ def _build_phase_2_core(
995995
)
996996

997997
print("Checking the State of Database and Migration Info")
998-
p = xqt(f"psql {effective_dburl} -c '\d'", capture_output=True, text=True)
998+
p = xqt(f"psql {effective_dburl} -c '\\d'", capture_output=True, text=True)
999999
if p.stderr == "Did not find any relations.\n":
10001000
# Remove any existing web2py migration data, since this is out of date and confuses web2py (an empty db, but migration files claiming it's populated). TODO: rsmanage should do this eventually; it doesn't right now.
10011001
xqt("rm -f $RUNESTONE_PATH/databases/*")

0 commit comments

Comments
 (0)