1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-22 09:05:54 +02:00

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
+2 -4
View File
@@ -664,10 +664,8 @@ information is missing, return the empty list (for channels) and possibly
(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