changeset 267:fcee81af7e71

simplify method of getting project name
author smith@nwoca.org
date Mon, 12 Nov 2018 21:21:00 +0000
parents b72855a930f1
children 26e44fb3cb79 aeff23c03436
files scripts/backup-container.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/backup-container.sh	Mon Nov 12 21:12:31 2018 +0000
+++ b/scripts/backup-container.sh	Mon Nov 12 21:21:00 2018 +0000
@@ -19,7 +19,7 @@
 mkdir -p ./backup
 backupFile=./backup/${container}.$(date +%Y-%m-%d-%H-%M-%S).backup
 
-project=$(composeGetProject $container)
+project=$(composeGetProject)
 
 if [ "$project" == "" ]; then
    echo "no project available"
@@ -31,7 +31,7 @@
 
 if [[ $( grep --count "CREATE TABLE" ${backupFile} ) -lt 200 || $( grep --count "PostgreSQL database dump complete" ${backupFile} ) -eq 0 ]]; then
    echo "ERROR: backup verification FAILED"
-   echo "ERROR:  $(tail ${backupFile})"
+   echo "ERROR: $(tail ${backupFile})"
    exit 1
 fi