diff scripts/backup-container.sh @ 267:fcee81af7e71

simplify method of getting project name
author smith@nwoca.org
date Mon, 12 Nov 2018 21:21:00 +0000
parents 2f5f41d237e7
children 7723b18b112b
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