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