Skip to content

Commit

Permalink
Update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
nolim1t committed May 19, 2019
1 parent ebe1874 commit 01c2233
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion etc/init.d/docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ stop() {
ebegin "Stopping docker compose"

# Invoke either Noma or Mana
/usr/bin/noma stop || /usr/local/sbin/mana stop && \
if [[ -f /usr/bin/noma ]]; then
/usr/bin/noma stop
else
# Invoke Mana if noma doesn't exist
if [[ -f /usr/local/sbin/mana ]]; then
/usr/local/sbin/mana stop
fi
fi
# If neither noma or mana exists just kill docker-compose
cd /home/lncm/compose || exit 1
docker-compose down

Expand Down

0 comments on commit 01c2233

Please sign in to comment.