Skip to content

Commit

Permalink
execute docker-compose exec ops w/o TTY (-T)
Browse files Browse the repository at this point in the history
  • Loading branch information
Asif Bacchus committed Oct 25, 2018
1 parent 7e92495 commit ed9db22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ fi

### Dump SQL
echo -e "${op}${stamp} Dumping mailcow SQL database...${normal}" >> "$logFile"
docker-compose exec mysql-mailcow mysqldump --default-character-set=utf8mb4 \
docker-compose exec -T mysql-mailcow mysqldump --default-character-set=utf8mb4 \
-u${DBUSER} -p${DBPASS} ${DBNAME} > "$sqlDumpDir/$sqlDumpFile" \
2>> "$logFile"
dumpResult=$(docker-compose exec -T mysql-mailcow echo "$?")
Expand Down Expand Up @@ -609,7 +609,7 @@ checkExist ff "$dockerVolumeRedis/dump.rdb"
fi
## Export redis
echo -e "${op}${stamp} Saving redis state information...${normal}" >> "$logFile"
docker-compose exec redis-mailcow redis-cli save >> "$logFile" 2>&1
docker-compose exec -T redis-mailcow redis-cli save >> "$logFile" 2>&1
saveResult=$(docker-compose exec -T redis-mailcow echo "$?")
# verify save operation completed successfully
if [ "$saveResult" = "0" ]; then
Expand Down

0 comments on commit ed9db22

Please sign in to comment.