Commit 4c9ca12a authored by Dave Lane's avatar Dave Lane
Browse files

fixed path issue and docker-compose exec TTY problem

parent 74936e58
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
# run system backups
#
......
......@@ -136,13 +136,13 @@ delete_old() {
do_backup() {
FILE=$1
CONTAINER=$2
VER=`$DC exec $CONTAINER pg_config --version`
VER=`$DC exec -T $CONTAINER pg_config --version`
verbose "Postgres version $VER - echoing to backup: $FILE"
echo "--" > $FILE
echo "-- PostgreSQL Version: $VER" >> $FILE
echo "--" >> $FILE
echo "" >> $FILE
CMD="$DC exec $CONTAINER $DUMP_CMD"
CMD="$DC exec -T $CONTAINER $DUMP_CMD"
verbose "doing database dump: $CMD"
$CMD >> $FILE
}
......
Supports Markdown
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