docs: allow override of number of nodes for slurm
@@ -31,7 +31,8 @@ the corresponding compute image in a subsequent step.
% ohpc_comment_header Update node configuration for slurm.conf
% ohpc_command if [[ ${update_slurm_nodeconfig} -eq 1 ]];then
% ohpc_indent 5
-% ohpc_command perl -pi -e s/^NodeName=.+$/#/ /etc/slurm/slurm.conf
+% ohpc_command perl -pi -e "s/^NodeName=.+$/#/" /etc/slurm/slurm.conf
+% ohpc_command perl -pi -e "s/^NodeName=c\S+/NodeName=c[1-$num_computes]/" /etc/slurm/slurm.conf
% ohpc_command echo -e ${slurm_node_config} >> /etc/slurm/slurm.conf
% ohpc_indent 0
% ohpc_command fi
