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

Commit

Permalink
fix(systemd): remove path to docker dev binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Monroy authored and Matthew Fisher committed Apr 15, 2014
1 parent 4a1beb1 commit 41489c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/systemd/deis-database.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description=deis-database
[Service]
TimeoutStartSec=20m
ExecStartPre=/bin/sh -c "/usr/bin/docker history deis/database >/dev/null || /usr/bin/docker pull deis/database"
ExecStartPre=/bin/bash -c "/usr/bin/docker start deis-database-data || /home/core/docker/bundles/0.10.0-dev/binary/docker run --name deis-database-data -v /var/lib/postgresql deis/data"
ExecStartPre=/bin/bash -c "/usr/bin/docker start deis-database-data || /usr/bin/docker run --name deis-database-data -v /var/lib/postgresql deis/data"
ExecStart=/bin/sh -c "IFACE=$(netstat -nr | grep ^0.0.0.0 | awk '{print $8}') && HOST_IP=$(/bin/ifconfig $IFACE | awk '/inet /{print $2}') && exec /usr/bin/docker run --name deis-database -p 5432:5432 -e PUBLISH=5432 -e HOST=$HOST_IP --volumes-from deis-database-data deis/database
ExecStop=/usr/bin/docker rm -f deis-database
Expand Down

0 comments on commit 41489c1

Please sign in to comment.