2018-12-29 01:13:09 +00:00
|
|
|
#!/bin/bash
|
2018-12-29 02:20:07 +00:00
|
|
|
sudo chown root. crontab
|
2019-08-19 08:41:06 +00:00
|
|
|
sudo chmod 644 crontab
|
2018-12-29 02:20:07 +00:00
|
|
|
# --force-recreate is used to recreate container when crontab file has changed
|
2019-02-03 21:00:37 +00:00
|
|
|
unset VERSION_PROXY VERSION_CRON
|
2019-12-04 10:04:19 +00:00
|
|
|
VERSION_PROXY=$(git ls-remote https://git.scimetis.net/yohan/docker-reverse-proxy.git| head -1 | cut -f 1|cut -c -10) \
|
|
|
|
VERSION_CRON=$(git ls-remote https://git.scimetis.net/yohan/docker-cron.git| head -1 | cut -f 1|cut -c -10) \
|
2019-02-03 21:00:37 +00:00
|
|
|
sudo -E bash -c 'docker-compose up -d --force-recreate'
|
2018-12-29 01:13:09 +00:00
|
|
|
|