From 2e2a34b47073fbe34919096826689757d146f9ed Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 21 Aug 2020 17:07:02 -0400 Subject: [PATCH] Reduce curl verbosity Hard to follow with so much extra output --- confluent_osdeploy/el7/profiles/default/scripts/functions | 4 ++-- confluent_osdeploy/el8/profiles/default/scripts/functions | 4 ++-- confluent_osdeploy/genesis/profiles/default/scripts/functions | 4 ++-- confluent_osdeploy/rhvh4/profiles/default/scripts/functions | 4 ++-- confluent_osdeploy/suse15/profiles/hpc/scripts/functions | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/confluent_osdeploy/el7/profiles/default/scripts/functions b/confluent_osdeploy/el7/profiles/default/scripts/functions index 35f3d832..0f315999 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/functions +++ b/confluent_osdeploy/el7/profiles/default/scripts/functions @@ -4,7 +4,7 @@ run_remote() { echo '---------------------------------------------------------------------------' echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 cmd=$1 if [ -x /usr/bin/chcon ]; then @@ -21,7 +21,7 @@ run_remote_python() { echo '---------------------------------------------------------------------------' echo Running python script "'$*'" from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 /usr/libexec/platform-python $* echo "'$*' exited with code $?" cd - diff --git a/confluent_osdeploy/el8/profiles/default/scripts/functions b/confluent_osdeploy/el8/profiles/default/scripts/functions index 35f3d832..0f315999 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/functions +++ b/confluent_osdeploy/el8/profiles/default/scripts/functions @@ -4,7 +4,7 @@ run_remote() { echo '---------------------------------------------------------------------------' echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 cmd=$1 if [ -x /usr/bin/chcon ]; then @@ -21,7 +21,7 @@ run_remote_python() { echo '---------------------------------------------------------------------------' echo Running python script "'$*'" from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 /usr/libexec/platform-python $* echo "'$*' exited with code $?" cd - diff --git a/confluent_osdeploy/genesis/profiles/default/scripts/functions b/confluent_osdeploy/genesis/profiles/default/scripts/functions index 35f3d832..0f315999 100644 --- a/confluent_osdeploy/genesis/profiles/default/scripts/functions +++ b/confluent_osdeploy/genesis/profiles/default/scripts/functions @@ -4,7 +4,7 @@ run_remote() { echo '---------------------------------------------------------------------------' echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 cmd=$1 if [ -x /usr/bin/chcon ]; then @@ -21,7 +21,7 @@ run_remote_python() { echo '---------------------------------------------------------------------------' echo Running python script "'$*'" from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 /usr/libexec/platform-python $* echo "'$*' exited with code $?" cd - diff --git a/confluent_osdeploy/rhvh4/profiles/default/scripts/functions b/confluent_osdeploy/rhvh4/profiles/default/scripts/functions index 35f3d832..0f315999 100644 --- a/confluent_osdeploy/rhvh4/profiles/default/scripts/functions +++ b/confluent_osdeploy/rhvh4/profiles/default/scripts/functions @@ -4,7 +4,7 @@ run_remote() { echo '---------------------------------------------------------------------------' echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 cmd=$1 if [ -x /usr/bin/chcon ]; then @@ -21,7 +21,7 @@ run_remote_python() { echo '---------------------------------------------------------------------------' echo Running python script "'$*'" from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 /usr/libexec/platform-python $* echo "'$*' exited with code $?" cd - diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/functions b/confluent_osdeploy/suse15/profiles/hpc/scripts/functions index 6a75c097..97df7cec 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/functions +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/functions @@ -4,7 +4,7 @@ run_remote() { echo '---------------------------------------------------------------------------' echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 chmod +x $1 cmd=$1 shift @@ -18,7 +18,7 @@ run_remote_python() { echo '---------------------------------------------------------------------------' echo Running python script "'$*'" from https://$mgr/confluent-public/os/$profile/scripts/ cd $(mktemp -d) - curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 + curl -f -sS https://$mgr/confluent-public/os/$profile/scripts/$1 > $1 python3 $* echo "'$*' exited with code $?" cd -