Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #109 from cloudflare/jwineman/PI-750-update-script…
Browse files Browse the repository at this point in the history
…-broken

PI-750: Fixing cloudflare_upate.sh to be correctly permissioned.
  • Loading branch information
jwineman committed Aug 26, 2016
2 parents 847b870 + aadfdac commit b6b2ad7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cloudflare.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ if [ "$LOCAL_FILE_PATH" = "" ]; then
DOWNLOAD_URL="https://github.com/cloudflare/CloudFlare-CPanel/archive/v$LATEST_VERSION.tar.gz"

if [ "$VERBOSE" = true ]; then
echo "curl -skL $DOWNLOAD_URL | tar xfz -"
echo "curl -sL $DOWNLOAD_URL | tar xfz -"
fi

curl -skL $DOWNLOAD_URL | tar xzf -
curl -sL $DOWNLOAD_URL | tar xzf -

# We could check for extract errors here, but the directory check outside
# the if statement will take care of this
Expand Down
5 changes: 3 additions & 2 deletions cloudflare_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ NEW_VERSION=`echo $INSTALLED_VERSION $CURRENT_VERSION | awk '{ print ($1 < $2) ?

if [[ "$NEW_VERSION" == 0 || "$FORCE_INSTALL" == true ]]
then
curl -s -L "https://raw.githubusercontent.com/cloudflare/CloudFlare-CPanel/master/cloudflare.install.sh"
./cloudflare.install.sh -k $HOST_KEY -n ' '
curl -s -L -o ./cloudflare.install.sh "https://raw.githubusercontent.com/cloudflare/CloudFlare-CPanel/master/cloudflare.install.sh"
chmod 0700 ./cloudflare.install.sh
bash cloudflare.install.sh -k $HOST_KEY -n ' '
fi

0 comments on commit b6b2ad7

Please sign in to comment.