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
'#n105'>105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162