Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Jan 12, 2024
1 parent d61cacf commit f38a7e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions create-space-drain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ drain_space=${1:-management}
drain_name=${2:-logstack-shipper}
prefix=${3:-logstack}

# If the app already exists, exit early/successfully
# cf app "${prefix}-space-drain" > /dev/null 2>&1 && echo "Drain already exists." && exit 0

# # install drain plugin if it isn't installed
# if ! cf plugins | grep -q drain; then
# echo "cf-drain-cli plugin not found. Installing..."
Expand All @@ -30,10 +27,14 @@ prefix=${3:-logstack}
# echo "cf-drain-cli plugin already exists."
# fi

# If the app already exists, exit early/successfully
# cf app "${prefix}-space-drain" > /dev/null 2>&1 && echo "Drain already exists." && exit 0

echo "test... downloading..."
curl -L -o /github/home/.cf/plugins/drain-plugin https://github.com/cloudfoundry/cf-drain-cli/releases/download/v2.0.0/cf-drain-cli-linux --insecure &&
echo "test... finish download..."
echo "test ... linux version"
uname -r
pwd
cd /github/home/.cf/plugins/
ls -l
Expand All @@ -46,6 +47,7 @@ ldd drain-plugin
# ls /github/home/.cf/plugins/temp3349476163/
echo "test... Installing..."
chmod 755 drain-plugin
ls -l
cf install-plugin -f drain-plugin &&
rm -f drain-plugin &&
mkdir -p /root/.cf/ && touch /root/.cf/config.json &&
Expand Down

0 comments on commit f38a7e5

Please sign in to comment.