diff --git a/cloudflare.install.sh b/cloudflare.install.sh index 993264d9..74e46930 100755 --- a/cloudflare.install.sh +++ b/cloudflare.install.sh @@ -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 diff --git a/cloudflare_update.sh b/cloudflare_update.sh index a57cf583..f63bb113 100755 --- a/cloudflare_update.sh +++ b/cloudflare_update.sh @@ -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