docker-elasticsearch-stack/start_or_update.sh

6 lines
311 B
Bash
Raw Normal View History

2019-07-14 20:46:16 +00:00
#!/bin/bash
# --force-recreate is used to recreate container when crontab file has changed
unset VERSION_ELASTICSEARCH
VERSION_ELASTICSEARCH=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-elasticsearch.git| head -1 | cut -f 1|cut -c -10) \
sudo -E bash -c 'docker-compose up -d --force-recreate'