mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:39:19 +00:00
add supported systems and systemd files
This commit is contained in:
18
systemd/photoview.service
Normal file
18
systemd/photoview.service
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Photoview - Photo gallery for self-hosted personal servers
|
||||
Documentation=https://photoview.github.io/docs
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/lib/photoview/photoview
|
||||
WorkingDirectory=/usr/lib/photoview
|
||||
User=photoview
|
||||
Group=photoview
|
||||
|
||||
ReadWritePaths=/var/lib/photoview
|
||||
|
||||
EnvironmentFile=/etc/photoview.env
|
||||
CacheDirectory=photoview/media_cache
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
1
systemd/photoview.sysusers.conf
Normal file
1
systemd/photoview.sysusers.conf
Normal file
@@ -0,0 +1 @@
|
||||
u photoview - "photoview user"
|
||||
2
systemd/photoview.tmpfiles
Normal file
2
systemd/photoview.tmpfiles
Normal file
@@ -0,0 +1,2 @@
|
||||
e /var/cache/photoview 0750 photoview photoview
|
||||
e /var/lib/photoview 0750 photoview photoview
|
||||
Reference in New Issue
Block a user