sunetdrive/templates/multinode/cron.erb.sh

5 lines
232 B
Bash
Raw Normal View History

2023-02-13 09:44:56 +00:00
#!/bin/bash
for container in $(docker ps | grep docker.sunet.se/drive/nextcloud-custom | grep -v cron | awk '{print $NF}'); do
/usr/bin/docker exec -u www-data ${container} php --define apc.enable_cli=1 /var/www/html/cron.php
done