Skip to content

Commit c2336f8

Browse files
committed
Fix new array notation in post-install for new cfnconfig
1 parent ad2079c commit c2336f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

post-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
. /etc/parallelcluster/cfnconfig
1111

1212
#get GitHub repo to clone and the installation script
13-
monitoring_url=$(echo ${cfn_postinstall_args}| cut -d ',' -f 1 )
14-
monitoring_dir_name=$(echo ${cfn_postinstall_args}| cut -d ',' -f 2 )
13+
monitoring_url=${cfn_postinstall_args[0]}
14+
monitoring_dir_name=${cfn_postinstall_args[1]}
1515
monitoring_tarball="${monitoring_dir_name}.tar.gz"
16-
setup_command=$(echo ${cfn_postinstall_args}| cut -d ',' -f 3 )
16+
setup_command=${cfn_postinstall_args[2]}
1717
monitoring_home="/home/${cfn_cluster_user}/${monitoring_dir_name}"
1818

1919
case ${cfn_node_type} in

0 commit comments

Comments
 (0)