nix/host/home/bin/Nextcloud

14 lines
276 B
Bash
Executable file

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