Mercurial > code > home > repos > photoprism
diff 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 |
line wrap: on
line diff
--- a/update/update.sh Thu Mar 16 18:09:55 2023 -0700 +++ b/update/update.sh Thu Mar 16 18:11:02 2023 -0700 @@ -1,12 +1,14 @@ #!/bin/zsh date -/my/pda/note10/copy_photos > /tmp/photo_touched_dirs - +useradd -MN -u 501 drewp +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 -it deploy/photoprism -c photoprism -- photoprism index $x + ./kubectl exec deploy/photoprism -c photoprism -- photoprism index $x } touch /my/pda/note10/photos_updated