Skip to content

Commit

Permalink
Merge pull request lamw#230 from leonbroadbent/master
Browse files Browse the repository at this point in the history
  • Loading branch information
lamw authored May 23, 2021
2 parents 42b119f + 7d73515 commit c5ec9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ghettoVCB-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

###### DO NOT EDIT PASS THIS LINE ######

LAST_MODIFIED_DATE=2020_10_10
LAST_MODIFIED_DATE=2021_03_18
VERSION=1
VERSION_STRING=${LAST_MODIFIED_DATE}_${VERSION}

Expand Down Expand Up @@ -93,7 +93,7 @@ sanityCheck() {
ESX_VERSION=$(vmware -v | awk '{print $3}')

case "${ESX_VERSION}" in
7.0.0|7.0.1) VER=7; break;;
7.0.0|7.0.1|7.0.2) VER=7; break;;
6.0.0|6.5.0|6.7.0) VER=6; break;;
5.0.0|5.1.0|5.5.0) VER=5; break;;
4.0.0|4.1.0) VER=4; break;;
Expand Down
6 changes: 3 additions & 3 deletions ghettoVCB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# User Definable Parameters
##################################################################

LAST_MODIFIED_DATE=2020_12_28
LAST_MODIFIED_DATE=2021_03_18
VERSION=1

# directory that all VM backups should go (e.g. /vmfs/volumes/SAN_LUN1/mybackupdir)
Expand Down Expand Up @@ -308,7 +308,7 @@ sanityCheck() {
ESX_RELEASE=$(uname -r)

case "${ESX_VERSION}" in
7.0.0|7.0.1) VER=7; break;;
7.0.0|7.0.1|7.0.2) VER=7; break;;
6.0.0|6.5.0|6.7.0) VER=6; break;;
5.0.0|5.1.0|5.5.0) VER=5; break;;
4.0.0|4.1.0) VER=4; break;;
Expand Down Expand Up @@ -903,7 +903,7 @@ ghettoVCB() {
#1 = readonly
#0 = readwrite
logger "debug" "Mounting NFS: ${NFS_SERVER}:${NFS_MOUNT} to /vmfs/volume/${NFS_LOCAL_NAME}"
if [[ ${ESX_RELEASE} == "5.5.0" ]] || [[ ${ESX_RELEASE} == "6.0.0" || ${ESX_RELEASE} == "6.5.0" || ${ESX_RELEASE} == "6.7.0" || ${ESX_RELEASE} == "7.0.0" || ${ESX_RELEASE} == "7.0.1" ]] ; then
if [[ ${ESX_RELEASE} == "5.5.0" ]] || [[ ${ESX_RELEASE} == "6.0.0" || ${ESX_RELEASE} == "6.5.0" || ${ESX_RELEASE} == "6.7.0" || ${ESX_RELEASE} == "7.0.0" || ${ESX_RELEASE} == "7.0.1" || ${ESX_RELEASE} == "7.0.2" ]] ; then
${VMWARE_CMD} hostsvc/datastore/nas_create "${NFS_LOCAL_NAME}" "${NFS_VERSION}" "${NFS_MOUNT}" 0 "${NFS_SERVER}"
else
${VMWARE_CMD} hostsvc/datastore/nas_create "${NFS_LOCAL_NAME}" "${NFS_SERVER}" "${NFS_MOUNT}" 0
Expand Down

0 comments on commit c5ec9cb

Please sign in to comment.