Do not create a system user, use a dynamic one instead.
This commit is contained in:
parent
34890ff93f
commit
f22fa1ee1d
@ -1,4 +0,0 @@
|
||||
# sysusers.d
|
||||
g dwupload - -
|
||||
u dwupload - -
|
||||
m dwupload dwupload
|
@ -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=/
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user