nix/host/home/bin/Nextcloud

14 lines
276 B
Plaintext
Raw Normal View History

2024-03-04 12:37:20 +03:00
#!/usr/bin/env bash
2024-03-08 22:40:38 +03:00
if [[ -z ${BASH_PATH} ]]; then
echo "BASH_PATH not defined."
exit 1
fi
2024-03-04 12:37:20 +03:00
# Source modules.
2024-03-08 22:40:38 +03:00
for file in ${BASH_PATH}/module/*.sh; do
2024-03-04 12:37:20 +03:00
source "${file}"
done
docker exec -u 33 cloud php -f /var/www/html/cron.php || notify 'Nextcloud : Failed to run cron.'