diff options
author | Benda Xu <heroxbd@gentoo.org> | 2024-10-17 10:13:58 +0800 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2024-10-18 21:38:03 +0800 |
commit | 2f398e18bc708f4b03b3616b1d85262a06ce1018 (patch) | |
tree | 14e9bd2b9dda852bd7a332595567150dd3e2d4e0 /sys-cluster | |
parent | profiles/arch: mask nvml and ucx USE flags on arm64, riscv and x86. (diff) | |
download | gentoo-2f398e18bc708f4b03b3616b1d85262a06ce1018.tar.gz gentoo-2f398e18bc708f4b03b3616b1d85262a06ce1018.tar.bz2 gentoo-2f398e18bc708f4b03b3616b1d85262a06ce1018.zip |
sys-cluster/slurm: drop bashism in the initd script.
Remove duplicated directories.
Suggested-by: Michael Orlitzky <mjo@gentoo.org>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/slurm/files/slurmd.initd | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sys-cluster/slurm/files/slurmd.initd b/sys-cluster/slurm/files/slurmd.initd index dd9797c0c7d2..c912468e8152 100644 --- a/sys-cluster/slurm/files/slurmd.initd +++ b/sys-cluster/slurm/files/slurmd.initd @@ -37,16 +37,14 @@ checkconfig() { fi # Make sure folders exists . /etc/slurm/slurm.conf - folders=( - ${SlurmdSpoolDir} - $(dirname ${SlurmctldLogFile}) - $(dirname ${SlurmctldPidFile}) - $(dirname ${SlurmdLogFile}) - $(dirname ${SlurmdPidFile}) - ${SlurmdSpoolDir} + + for folder in ${SlurmdSpoolDir} \ + $(dirname ${SlurmctldLogFile}) \ + $(dirname ${SlurmctldPidFile}) \ + $(dirname ${SlurmdLogFile}) \ + $(dirname ${SlurmdPidFile}) \ ${StateSaveLocation} - ) - for folder in ${folders[@]}; do + do create_folder_and_set_permission "${folder}" done } |