#!/bin/zsh

print update runnning as `id`

date
grep drewp /etc/passwd
runuser -u drewp -- /my/pda/note10/copy_photos > /tmp/photo_touched_dirs
wc /tmp/photo_touched_dirs
date

for x (`cat /tmp/photo_touched_dirs`) {
  ./kubectl exec deploy/photoprism -c photoprism -- photoprism index $x
}

runuser -u drewp -- touch /my/pda/note10/photos_updated
