Skip to content

Commit

Permalink
Cron task fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
notthebee committed Dec 31, 2021
1 parent 7df8c65 commit 188d4c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion group_vars/all/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ snapraid_runner_command: "python3 {{ snapraid_runner_bin }} -c {{ snapraid_runne
# Stop all the docker containers, backup the {{ docker_dir }} to the MergerFS pool, execute the snapraid runner and start the containers back up
# Stopping the containers is necessary – backing up the data folder with the containers running will result in corrputed database files and no files can be changed during the Snapraid sync
snapraid_runner_cron_jobs:
- { job: 'docker stop $(docker ps -q) && rsync -avz --delete --exclude cache {{ docker_dir }} {{ mergerfs_root }}/docker_data & docker start $(docker ps -a -q) & {{ snapraid_runner_command }} ', name: 'snapraid_runner', weekday: '0', hour: '3' }
- { job: 'docker stop $(docker ps -q); rsync -avz --delete --exclude cache {{ docker_dir }} {{ mergerfs_root }}/docker_data; docker start $(docker ps -a -q) && {{ snapraid_runner_command }} ', name: 'snapraid_runner', weekday: '0', hour: '3' }

snapraid_runner_delete_threshold: 999999

Expand Down
2 changes: 1 addition & 1 deletion roles/containers/nextcloud/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@
cron:
name: Scan the Nextcloud library
hour: "0"
job: "docker exec -it photoprism /photoprism/bin/photoprism index"
job: "docker exec nextcloud sudo -u abc php8 /config/www/nextcloud/occ files:scan --all"

0 comments on commit 188d4c7

Please sign in to comment.