1
0
Fork 0

Do not create a system user, use a dynamic one instead.

This commit is contained in:
Alexander Andreev 2023-08-06 02:21:02 +04:00
parent 34890ff93f
commit f22fa1ee1d
Signed by: Arav
GPG Key ID: D22A817D95815393
3 changed files with 2 additions and 8 deletions

View File

@ -1,4 +0,0 @@
# sysusers.d
g dwupload - -
u dwupload - -
m dwupload dwupload

View File

@ -3,8 +3,7 @@ Description=dwelling-upload-clean
[Service]
Type=oneshot
User=dwupload
Group=dwupload
DynamicUser=yes
ExecStart=/usr/bin/dwelling-upload-clean -dir /srv/upload -expiry 36h
ReadOnlyPaths=/

View File

@ -5,8 +5,7 @@ After=network.target
[Service]
Type=simple
Restart=on-failure
User=dwupload
Group=dwupload
DynamicUser=yes
ExecStart=/usr/bin/dwelling-upload -listen /var/run/dwelling-upload/sock \
-dir /srv/upload -expiry 36 -storage 102400 -file 128