From 7950f920ac79cd1d078c42ffd009fce6d15efe1d Mon Sep 17 00:00:00 2001 From: John-Paul Robinson <jpr@uab.edu> Date: Mon, 29 Aug 2022 11:37:19 -0500 Subject: [PATCH] Add FILEPATH var to pass to policy scripts Add variable arg to mmapplypol to pass the filesystem path as FILEPATH. The supports policies that want to use this variable in their rules or other parts of the policy file. It is a strict string substitution. --- run-mmpol.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run-mmpol.sh b/run-mmpol.sh index 1216b9c..7ffa6d5 100755 --- a/run-mmpol.sh +++ b/run-mmpol.sh @@ -22,6 +22,7 @@ cmd="mmapplypolicy ${filesystem} -I prepare \ -P $policyfile \ -g $tmpglobal \ -s $tmpscratch \ + -M FILEPATH=${filesystem} \ -N ${nodes} -n ${cores}" # report final command in job log -- GitLab