16 lines
709 B
Text
16 lines
709 B
Text
![]() |
#!/bin/env bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
systemd-run \
|
||
|
--pty \
|
||
|
--description='photoprism binary call' \
|
||
|
--property=User={{ host.data.unix_user }} \
|
||
|
--property=Group={{ host.data.unix_group }} \
|
||
|
--property=StateDirectory={{ host.data.unix_user }} \
|
||
|
--property=EnvironmentFile={{ host.data.systemd_env }} \
|
||
|
--property=WorkingDirectory=/photoprism \
|
||
|
--property=RootDirectory={{ host.data.undocker_dst }} \
|
||
|
--property='BindPaths={{ host.data.photoprism_storage_src }}:/photoprism/storage {{ host.data.photoprism_originals_src }}:/photoprism/originals {{ host.data.photoprism_import_src }}:/photoprism/import' \
|
||
|
--property='BindReadOnlyPaths=/etc/resolv.conf /proc' \
|
||
|
/photoprism/bin/photoprism $1
|