fixed path issue and docker-compose exec TTY problem

This commit is contained in:
Dave lane 2018-02-09 16:28:44 +13:00
parent 74936e5842
commit 4c9ca12a93
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,5 @@
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
#
# run system backups
#

View file

@ -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
}