1
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] [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=/

View File

@ -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