services: cleanup: Create directories with the right mode upfront.

* gnu/services.scm (cleanup-gexp): Pass mode as second argument to
‘mkdir’; remove ‘chmod’ calls.

Change-Id: I8ac2dde0ca5d9bd6b2ef104d77141d8463d8b3fa
This commit is contained in:
Ludovic Courtès 2024-08-31 19:46:27 +02:00
parent bd67531b82
commit e74d05db53
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -664,10 +664,8 @@ (define (cleanup-gexp _)
(delete-file-recursively "/tmp")
(delete-file-recursively "/var/run")
(mkdir "/tmp")
(chmod "/tmp" #o1777)
(mkdir "/var/run")
(chmod "/var/run" #o755)
(mkdir "/tmp" #o1777)
(mkdir "/var/run" #o755)
(delete-file-recursively "/run/udev/watch.old"))))))
(define cleanup-service-type