# HG changeset patch # User smith@nwoca.org # Date 1542057660 0 # Node ID fcee81af7e710f12bbd1e3e79335e4c675793068 # Parent b72855a930f11c156408d6ab41bc60ad7d21f960 simplify method of getting project name diff -r b72855a930f1 -r fcee81af7e71 scripts/backup-container.sh --- 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