2020-06-18 16:36:00 +00:00
|
|
|
run_remote() {
|
|
|
|
cd $(mktemp -d)
|
|
|
|
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
|
|
|
|
chmod +x $1
|
2020-07-15 19:22:27 +00:00
|
|
|
cmd=$1
|
2020-07-24 20:07:15 +00:00
|
|
|
if [ -x /usr/bin/chcon ]; then
|
2020-07-24 19:32:13 +00:00
|
|
|
chcon system_u:object_r:bin_t:s0 $cmd
|
|
|
|
fi
|
2020-07-15 19:22:27 +00:00
|
|
|
shift
|
2020-07-13 21:08:38 +00:00
|
|
|
./$cmd $*
|
2020-06-18 16:36:00 +00:00
|
|
|
cd -
|
|
|
|
}
|
|
|
|
|
|
|
|
run_remote_python() {
|
|
|
|
cd $(mktemp -d)
|
|
|
|
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
|
2020-07-13 21:08:38 +00:00
|
|
|
/usr/libexec/platform-python $*
|
2020-06-18 16:36:00 +00:00
|
|
|
cd -
|
|
|
|
}
|