Issue #14: Fix named pipe on create task

Signed-off-by: Lucas Fernandes de Oliveira's avatarLucas Fernandes de Oliveira <lfoliveira@inf.ufpr.br>
parent de3b7331
Pipeline #21059 passed with stage
in 1 minute and 1 second
...@@ -29,6 +29,8 @@ createDB() { ...@@ -29,6 +29,8 @@ createDB() {
"$tmpWS/commit.sql"\ "$tmpWS/commit.sql"\
> "$tmpWS/trans.fifo" > "$tmpWS/trans.fifo"
tail -n20 "$tmpWS/trans.fifo"
# Performs schema creation. As is in a transaction if fails it will # Performs schema creation. As is in a transaction if fails it will
# NOT leave the database inconsistent. # NOT leave the database inconsistent.
execFile $tmpWS/trans.fifo $tmpWS/error.out execFile $tmpWS/trans.fifo $tmpWS/error.out
......
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
# Creates a temporary workspace directory # Creates a temporary workspace directory
createTmpWorkspace() { createTmpWorkspace() {
tmpWS='/tmp/psql-manager' mktemp -d
mkdir -p $tmpWS
echo $tmpWS
} }
# Check if the environment vars are set # Check if the environment vars are set
......
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