From d49f018981b84699b36da3f8b3315d139d396fb8 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 Jul 2020 15:22:27 -0400 Subject: [PATCH] Correct functions in profiles Use functions correectly. --- confluent_osdeploy/el8/profiles/default/scripts/functions | 3 ++- confluent_osdeploy/rhvh4/profiles/default/scripts/functions | 3 ++- confluent_osdeploy/suse15/profiles/hpc/scripts/functions | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/functions b/confluent_osdeploy/el8/profiles/default/scripts/functions index 59e64554..812f77c3 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/functions +++ b/confluent_osdeploy/el8/profiles/default/scripts/functions @@ -2,7 +2,8 @@ run_remote() { cd $(mktemp -d) curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 - cmd=$(shift) + cmd=$1 + shift ./$cmd $* cd - } diff --git a/confluent_osdeploy/rhvh4/profiles/default/scripts/functions b/confluent_osdeploy/rhvh4/profiles/default/scripts/functions index 59e64554..812f77c3 100644 --- a/confluent_osdeploy/rhvh4/profiles/default/scripts/functions +++ b/confluent_osdeploy/rhvh4/profiles/default/scripts/functions @@ -2,7 +2,8 @@ run_remote() { cd $(mktemp -d) curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 - cmd=$(shift) + cmd=$1 + shift ./$cmd $* cd - } diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/functions b/confluent_osdeploy/suse15/profiles/hpc/scripts/functions index 16afe4eb..8794d34c 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/functions +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/functions @@ -2,7 +2,8 @@ run_remote() { cd $(mktemp -d) curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 - cmd=$(shift) + cmd=$1 + shift ./$cmd $* cd - }