Testing Cron issues
This commit is contained in:
@@ -26,17 +26,17 @@ services:
|
|||||||
dns: # Using Cloudflare DNS
|
dns: # Using Cloudflare DNS
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
entrypoint: |
|
entrypoint: | # www-data uid: 82
|
||||||
sh -c 'sh -s <<EOF
|
sh -c 'sh -s <<EOF
|
||||||
trap "break;exit" SIGHUP SIGINT SIGTERM
|
trap "break;exit" SIGHUP SIGINT SIGTERM
|
||||||
while /bin/true; do
|
while /bin/true; do
|
||||||
su -s "/bin/sh" -c "/usr/local/bin/php /var/www/html/cron.php" www-data
|
su -s "/bin/sh" -c "/usr/local/bin/php /var/www/html/cron.php" 82
|
||||||
echo $$(date) - Running cron finished
|
echo $$(date) - Running cron finished
|
||||||
sleep 900
|
sleep 900
|
||||||
done
|
done
|
||||||
EOF'
|
EOF'
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
user: www-data
|
user: 82
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- nginx
|
- nginx
|
||||||
nextcloud:
|
nextcloud:
|
||||||
|
|||||||
Reference in New Issue
Block a user