From a8ff7247cf3c78004a7465e6cd9f1d98c0397765 Mon Sep 17 00:00:00 2001 From: JEAN-FRANCOIS GUILLAUME Date: Mon, 21 Nov 2022 12:50:44 +0100 Subject: [PATCH] adding recursive chown on slurm config --- glicid/services/parallel.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/glicid/services/parallel.scm b/glicid/services/parallel.scm index 60645c6..35413b9 100644 --- a/glicid/services/parallel.scm +++ b/glicid/services/parallel.scm @@ -242,7 +242,11 @@ (chown "/var/lib/slurm" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) (chown "/var/spool/slurmctld" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) (chown "/etc/slurm" (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) - (for-each (lambda (slurm-file) (chown slurm-file (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))))) + (for-each (lambda (slurm-file) + (chown slurm-file (passwd:uid (getpwnam "slurm")) (passwd:gid (getpwnam "slurm"))) + ) + (find-files "/etc/slurm") + ) #t ) )