Mercurial > public > ssdt-docker
changeset 54:334d65dac778
add hash bangs to specify bash shell
author | smith@nwoca.org |
---|---|
date | Wed, 24 Feb 2016 18:23:42 +0000 |
parents | f3773b50a88e |
children | 77ff739c078d |
files | init.sh scripts/backup-usas.sh scripts/backup-usps.sh scripts/pid2name.sh scripts/restore-usas.sh scripts/restore-usps.sh scripts/updates-apply.sh scripts/updates-cleanup.sh scripts/updates-pull.sh update.sh utils/docker-entrypoint.sh |
diffstat | 11 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/init.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/init.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,2 +1,2 @@ - +#!/bin/bash alias utils='docker run -it -v ${PWD}:/tmp -v /ssdt:/ssdt --rm docker.ssdt.io/ssdt-utils'
--- a/scripts/backup-usas.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/backup-usas.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,4 +1,4 @@ - +#!/bin/bash docker-compose run --rm usasdb sh -c \ "pg_dump -Cc --if-exists --host=usasdb \ --dbname=\$USASDB_ENV_DB_NAME \
--- a/scripts/backup-usps.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/backup-usps.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,4 +1,4 @@ - +#!/bin/bash docker-compose run --rm uspsdb sh -c \ "pg_dump -Cc --if-exists --host=uspsdb \ --dbname=\$USPSDB_ENV_DB_NAME \
--- a/scripts/pid2name.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/pid2name.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,3 +1,4 @@ +#!/bin/bash docker ps -q | xargs docker inspect --format '{{.State.Pid}} {{.Name}}' \ | grep "^$1" | sed 's/^.*\///g'
--- a/scripts/restore-usas.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/restore-usas.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,4 +1,4 @@ - +#!/bin/bash if [ -z "$1" ] then echo "Usage: `basename $0` {backup file to restore}"
--- a/scripts/restore-usps.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/restore-usps.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,4 +1,4 @@ - +#!/bin/bash if [ -z "$1" ] then echo "Usage: `basename $0` {backup file to restore}"
--- a/scripts/updates-apply.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/updates-apply.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,4 +1,4 @@ - +#!/bin/bash # Scans for docker projects in specified parent path and # updates images, if applicable. #
--- a/scripts/updates-cleanup.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/updates-cleanup.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,3 +1,4 @@ +#!/bin/bash # # Safely removes obsolete images from previous SSDT versions. #
--- a/scripts/updates-pull.sh Mon Feb 22 21:21:16 2016 -0500 +++ b/scripts/updates-pull.sh Wed Feb 24 18:23:42 2016 +0000 @@ -1,3 +1,4 @@ +#!/bin/bash # # Pulls updates from upstream repository for images matching filter. The # default filter pulls all ssdt application images.