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]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
User=dwupload
|
DynamicUser=yes
|
||||||
Group=dwupload
|
|
||||||
ExecStart=/usr/bin/dwelling-upload-clean -dir /srv/upload -expiry 36h
|
ExecStart=/usr/bin/dwelling-upload-clean -dir /srv/upload -expiry 36h
|
||||||
|
|
||||||
ReadOnlyPaths=/
|
ReadOnlyPaths=/
|
||||||
|
@ -5,8 +5,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=dwupload
|
DynamicUser=yes
|
||||||
Group=dwupload
|
|
||||||
ExecStart=/usr/bin/dwelling-upload -listen /var/run/dwelling-upload/sock \
|
ExecStart=/usr/bin/dwelling-upload -listen /var/run/dwelling-upload/sock \
|
||||||
-dir /srv/upload -expiry 36 -storage 102400 -file 128
|
-dir /srv/upload -expiry 36 -storage 102400 -file 128
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user