comparison update/update.sh @ 4:a248c94091e7

get updater working BAMN
author drewp@bigasterisk.com
date Thu, 16 Mar 2023 18:11:02 -0700
parents 781290b4a683
children 07aa4c3cddc4
comparison
equal deleted inserted replaced
3:d393292f378c 4:a248c94091e7
1 #!/bin/zsh 1 #!/bin/zsh
2 2
3 date 3 date
4 /my/pda/note10/copy_photos > /tmp/photo_touched_dirs 4 useradd -MN -u 501 drewp
5 5 grep drewp /etc/passwd
6 runuser -u drewp -- /my/pda/note10/copy_photos > /tmp/photo_touched_dirs
7 wc /tmp/photo_touched_dirs
6 date 8 date
7 9
8 for x (`cat /tmp/photo_touched_dirs`) { 10 for x (`cat /tmp/photo_touched_dirs`) {
9 kubectl exec -it deploy/photoprism -c photoprism -- photoprism index $x 11 ./kubectl exec deploy/photoprism -c photoprism -- photoprism index $x
10 } 12 }
11 13
12 touch /my/pda/note10/photos_updated 14 touch /my/pda/note10/photos_updated