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

Commit

Permalink
appliance/postgresql: Make start wrapper pass through arguments.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Elsdörfer <michael@elsdoerfer.com>
  • Loading branch information
miracle2k committed May 25, 2014
1 parent 8934936 commit 1456bdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
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 1456bdc

Please sign in to comment.