summaryrefslogtreecommitdiffstats
path: root/stack.yml
diff options
context:
space:
mode:
authorTilo Spannagel <development@tilosp.de>2018-02-06 20:40:49 +0100
committerTilo Spannagel <development@tilosp.de>2018-02-06 20:40:49 +0100
commit8db861d67f257a3e9ac1790ea06d4e2a7a193a6c (patch)
tree4ffe22d74ed8e063601df78f58dbf9d320ba990b /stack.yml
parent71380e0a925d35e91102747495e3b5d52f0b66db (diff)
Use cron.sh for the cron container
Diffstat (limited to 'stack.yml')
-rw-r--r--stack.yml15
1 files changed, 1 insertions, 14 deletions
diff --git a/stack.yml b/stack.yml
index 6fe1e2c4..631ab045 100644
--- a/stack.yml
+++ b/stack.yml
@@ -31,20 +31,7 @@ services:
restart: always
volumes:
- nextcloud:/var/www/html
- user: www-data
- entrypoint: |
- bash -c 'bash -s <<EOF
- trap "break;exit" SIGHUP SIGINT SIGTERM
-
- while [ ! -f /var/www/html/config/config.php ]; do
- sleep 1
- done
-
- while true; do
- php -f /var/www/html/cron.php
- sleep 15m
- done
- EOF'
+ entrypoint: /cron.sh
depends_on:
- db