Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
appliance/postgresql: Merge pull request #4 from miracle2k/args
Browse files Browse the repository at this point in the history
Make start wrapper pass through arguments.
  • Loading branch information
titanous committed May 25, 2014
2 parents 8934936 + 1456bdc commit 7ffa496
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions start.sh
Expand Up @@ -3,10 +3,12 @@
case $1 in
postgres)
chown -R postgres:postgres /data
sudo -u postgres -H EXTERNAL_IP=$EXTERNAL_IP PORT=$PORT DISCOVERD=$DISCOVERD /bin/flynn-postgres
shift
sudo -u postgres -H EXTERNAL_IP=$EXTERNAL_IP PORT=$PORT DISCOVERD=$DISCOVERD /bin/flynn-postgres $*
;;
api)
/bin/flynn-postgres-api
shift
/bin/flynn-postgres-api $*
;;
*)
echo "Usage: $0 {postgres|api}"
Expand Down

0 comments on commit 7ffa496

Please sign in to comment.