From b66fb90b6d24a527f0303ad60f4ab6ebdda70619 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Wed, 15 Jun 2011 19:19:43 +0200 Subject: [PATCH] feature #595: added im sh and ssh wrappers --- install.sh | 2 ++ src/im_mad/im_exec/one_im_sh | 25 +++++++++++++++++++++++++ src/im_mad/im_exec/one_im_ssh | 25 +++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100755 src/im_mad/im_exec/one_im_sh create mode 100755 src/im_mad/im_exec/one_im_ssh diff --git a/install.sh b/install.sh index f86e1e1efe..bd59ea83ee 100755 --- a/install.sh +++ b/install.sh @@ -422,6 +422,8 @@ MADS_LIB_FILES="src/mad/sh/madcommon.sh \ src/vmm_mad/dummy/one_vmm_dummy \ src/im_mad/im_exec/one_im_exec.rb \ src/im_mad/im_exec/one_im_exec \ + src/im_mad/im_exec/one_im_ssh \ + src/im_mad/im_exec/one_im_sh \ src/im_mad/ec2/one_im_ec2.rb \ src/im_mad/ec2/one_im_ec2 \ src/im_mad/dummy/one_im_dummy.rb \ diff --git a/src/im_mad/im_exec/one_im_sh b/src/im_mad/im_exec/one_im_sh new file mode 100755 index 0000000000..cfb46f884a --- /dev/null +++ b/src/im_mad/im_exec/one_im_sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +if [ -z "${ONE_LOCATION}" ]; then + MAD_LOCATION=/usr/lib/one/mads +else + MAD_LOCATION=$ONE_LOCATION/lib/mads +fi + +exec $MAD_LOCATION/one_im_exec -l $* diff --git a/src/im_mad/im_exec/one_im_ssh b/src/im_mad/im_exec/one_im_ssh new file mode 100755 index 0000000000..bab3d6a748 --- /dev/null +++ b/src/im_mad/im_exec/one_im_ssh @@ -0,0 +1,25 @@ +#!/bin/bash + +# -------------------------------------------------------------------------- # +# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); you may # +# not use this file except in compliance with the License. You may obtain # +# a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +#--------------------------------------------------------------------------- # + +if [ -z "${ONE_LOCATION}" ]; then + MAD_LOCATION=/usr/lib/one/mads +else + MAD_LOCATION=$ONE_LOCATION/lib/mads +fi + +exec $MAD_LOCATION/one_im_exec $*