diff --git a/build/dwelling-upload.conf b/build/dwelling-upload.conf deleted file mode 100644 index 87322c9..0000000 --- a/build/dwelling-upload.conf +++ /dev/null @@ -1,4 +0,0 @@ -# sysusers.d -g dwupload - - -u dwupload - - -m dwupload dwupload \ No newline at end of file diff --git a/init/systemd/dwelling-upload-clean.service b/init/systemd/dwelling-upload-clean.service index 0da2e53..b0e358c 100755 --- a/init/systemd/dwelling-upload-clean.service +++ b/init/systemd/dwelling-upload-clean.service @@ -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=/ diff --git a/init/systemd/dwelling-upload.service b/init/systemd/dwelling-upload.service index d9be7b3..74bfdb5 100755 --- a/init/systemd/dwelling-upload.service +++ b/init/systemd/dwelling-upload.service @@ -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