fixed path issue and docker-compose exec TTY problem
This commit is contained in:
parent
74936e5842
commit
4c9ca12a93
2 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
SHELL=/bin/sh
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
#
|
#
|
||||||
# run system backups
|
# run system backups
|
||||||
#
|
#
|
||||||
|
|
|
@ -136,13 +136,13 @@ delete_old() {
|
||||||
do_backup() {
|
do_backup() {
|
||||||
FILE=$1
|
FILE=$1
|
||||||
CONTAINER=$2
|
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"
|
verbose "Postgres version $VER - echoing to backup: $FILE"
|
||||||
echo "--" > $FILE
|
echo "--" > $FILE
|
||||||
echo "-- PostgreSQL Version: $VER" >> $FILE
|
echo "-- PostgreSQL Version: $VER" >> $FILE
|
||||||
echo "--" >> $FILE
|
echo "--" >> $FILE
|
||||||
echo "" >> $FILE
|
echo "" >> $FILE
|
||||||
CMD="$DC exec $CONTAINER $DUMP_CMD"
|
CMD="$DC exec -T $CONTAINER $DUMP_CMD"
|
||||||
verbose "doing database dump: $CMD"
|
verbose "doing database dump: $CMD"
|
||||||
$CMD >> $FILE
|
$CMD >> $FILE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue