mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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:
parent
bd67531b82
commit
e74d05db53
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue