Docs:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ "$1" = "-d" ] && debug=on || debug=off | |
# Make working directory | |
export wrkdir=/tmp/wrkdir.$$ | |
mkdir -p ${wrkdir} | |
# Clean up function | |
clean_up() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "OVF Source File: " | |
read -r VCD_SRC_INPUT | |
export VCD_SRC=$VCD_SRC_INPUT | |
echo "vCloud Director Username: " | |
read -r VCD_USERNAME_INPUT | |
export VCD_USERNAME=$VCD_USERNAME_INPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
export PIVNET_TOKEN=GET_FROM_PIVNET_USER_PROFILE_PAGE | |
export OPSMGR_HOST=localhost | |
echo "Local file name: " | |
read -r LOCAL_FILE_NAME_INPUT | |
export LOCAL_FILE_NAME=$LOCAL_FILE_NAME_INPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl https://localhost/api/products -d '' -X DELETE -u admin -k |