Skip to content

Commit

Permalink
adds mount to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ProofOfKeags committed Feb 28, 2022
1 parent fccb424 commit dc79457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ migrations:
args: []
io-format: json
inject: true
mounts:
main: /media
to: {}
health-checks:
interface:
Expand Down
3 changes: 2 additions & 1 deletion migration-from-lt-2-3-9.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
PATH_MD5=$(echo -n /mnt/filebrowser | md5sum | head -c 32)
sqlite3 /media/photoview.db "update albums set path = '/mnt/filebrowser', path_hash = '$PATH_MD5' where id = 1;"
sqlite3 /media/photoview.db "update albums set path = '/mnt/filebrowser', path_hash = '$PATH_MD5' where id = 1;"
echo '{"configured":false}'

0 comments on commit dc79457

Please sign in to comment.