From 2f9da300568a8826eef92ba55231a295bcccca37 Mon Sep 17 00:00:00 2001 From: Christopher Usher Date: Tue, 24 Sep 2019 02:18:36 +0100 Subject: [PATCH] stupid copying things into docker --- db_scripts/db_restore | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/db_scripts/db_restore b/db_scripts/db_restore index 0c963a7..13591f8 100644 --- a/db_scripts/db_restore +++ b/db_scripts/db_restore @@ -17,10 +17,7 @@ if [ "$(wc -l <<<"$CONTAINER")" -ne 1 ]; then exit 1 fi -#need to do this in case db dump file has a colon in it -cp "$1" tmp.sql -docker cp tmp.sql "$CONTAINER:/" -rm tmp.sql +docker cp "./$1" "$CONTAINER:/tmp.sql" # this will fail if there are active sessions by users other than 'postgres' # make sure all wubloader components are disconnected