mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05: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 @@ (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
|
||||
|
|
Loading…
Reference in a new issue