Skip to content

Commit

Permalink
M OpenNebula#4985: Move sshrc file to etc dir (OpenNebula#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel authored and atodorov-storpool committed Jan 4, 2021
1 parent 0e454df commit f97fe72
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ LIB_DIRS="$LIB_LOCATION/ruby \
VAR_DIRS="$VAR_LOCATION/remotes \
$VAR_LOCATION/remotes/etc \
$VAR_LOCATION/remotes/etc/tm/fs_lvm \
$VAR_LOCATION/remotes/etc/tm/ssh \
$VAR_LOCATION/remotes/etc/datastore/fs \
$VAR_LOCATION/remotes/etc/datastore/ceph \
$VAR_LOCATION/remotes/etc/im/kvm-probes.d \
Expand Down Expand Up @@ -602,6 +603,7 @@ INSTALL_FILES=(
TM_FS_LVM_ETC_FILES:$VAR_LOCATION/remotes/etc/tm/fs_lvm/fs_lvm.conf
TM_QCOW2_FILES:$VAR_LOCATION/remotes/tm/qcow2
TM_SSH_FILES:$VAR_LOCATION/remotes/tm/ssh
TM_SSH_ETC_FILES:$VAR_LOCATION/remotes/etc/tm/ssh
TM_CEPH_FILES:$VAR_LOCATION/remotes/tm/ceph
TM_DEV_FILES:$VAR_LOCATION/remotes/tm/dev
TM_ISCSI_FILES:$VAR_LOCATION/remotes/tm/iscsi_libvirt
Expand Down Expand Up @@ -1673,6 +1675,8 @@ TM_SSH_FILES="src/tm_mad/ssh/clone \
src/tm_mad/ssh/cpds \
src/tm_mad/ssh/resize"

TM_SSH_ETC_FILES="src/tm_mad/ssh/sshrc"

TM_DUMMY_FILES="src/tm_mad/dummy/clone \
src/tm_mad/dummy/delete \
src/tm_mad/dummy/ln \
Expand Down
4 changes: 2 additions & 2 deletions src/tm_mad/ssh/clone.replica
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ REPLICA_HOST=$5

if [ -z "${ONE_LOCATION}" ]; then
TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh
SSH_RC=/var/lib/one/remotes/tm/ssh/sshrc
SSH_RC=/var/lib/one/remotes/etc/tm/ssh/sshrc
else
TMCOMMON=$ONE_LOCATION/var/remotes/tm/tm_common.sh
SSH_RC=$ONE_LOCATION/var/remotes/tm/ssh/sshrc
SSH_RC=$ONE_LOCATION/var/remotes/etc/tm/ssh/sshrc
fi

. $TMCOMMON
Expand Down
4 changes: 2 additions & 2 deletions src/tm_mad/ssh/snap_create
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ VMID=$3

if [ -z "${ONE_LOCATION}" ]; then
TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh
SSH_RC=/var/lib/one/remotes/tm/ssh/sshrc
SSH_RC=/var/lib/one/remotes/etc/tm/ssh/sshrc
else
TMCOMMON=$ONE_LOCATION/var/remotes/tm/tm_common.sh
SSH_RC=$ONE_LOCATION/var/remotes/tm/ssh/sshrc
SSH_RC=$ONE_LOCATION/var/remotes/etc/tm/ssh/sshrc
fi

DRIVER_PATH=$(dirname $0)
Expand Down
4 changes: 2 additions & 2 deletions src/tm_mad/ssh/snap_create_live
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ VMID=$3

if [ -z "${ONE_LOCATION}" ]; then
TMCOMMON=/var/lib/one/remotes/tm/tm_common.sh
SSH_RC=/var/lib/one/remotes/tm/ssh/sshrc
SSH_RC=/var/lib/one/remotes/etc/tm/ssh/sshrc
else
TMCOMMON=$ONE_LOCATION/var/remotes/tm/tm_common.sh
SSH_RC=$ONE_LOCATION/var/remotes/tm/ssh/sshrc
SSH_RC=$ONE_LOCATION/var/remotes/etc/tm/ssh/sshrc
fi

DRIVER_PATH=$(dirname $0)
Expand Down

0 comments on commit f97fe72

Please sign in to comment.