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

Commit

Permalink
Merge branch 'master' of github.com:cloudflare/CloudFlare-CPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wineman committed Jan 6, 2017
2 parents dafc3f4 + 071b139 commit 26443f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions cloudflare.install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ else
exit 1
fi

# We expect the file to be named like so: 'CloudFlare-CPanel-$LATEST_VERSION.tar.gz'
# for example CloudFlare-CPanel-1.2.3.tar.gz
# We expect the file to be named like so: 'Cloudflare-CPanel-$LATEST_VERSION.tar.gz'
# for example Cloudflare-CPanel-1.2.3.tar.gz
FNAME=$(basename "$LOCAL_FILE_PATH");
LATEST_VERSION=$(echo -n "$FNAME" | sed 's/^CloudFlare-CPanel-//' | sed 's/.tar.gz//')
LATEST_VERSION=$(echo -n "$FNAME" | sed 's/^Cloudflare-CPanel-//' | sed 's/.tar.gz//')

if [ "$VERBOSE" = true ]; then
echo "LATEST_VERSION - '$LATEST_VERSION'"
Expand All @@ -152,14 +152,14 @@ else
fi

# Make sure that the tar directory got created correctly. We expect a directory
# name something like this: CloudFlare-CPanel-$LATEST_VERSION/cloudflare
# name something like this: Cloudflare-CPanel-$LATEST_VERSION/cloudflare

if [ ! -d "CloudFlare-CPanel-$LATEST_VERSION" ]; then
echo "ERROR - Unpack failed, directory not found: 'CloudFlare-CPanel-$LATEST_VERSION'"
if [ ! -d "Cloudflare-CPanel-$LATEST_VERSION" ]; then
echo "ERROR - Unpack failed, directory not found: 'Cloudflare-CPanel-$LATEST_VERSION'"
exit 1
fi

SOURCE_DIR="CloudFlare-CPanel-$LATEST_VERSION"
SOURCE_DIR="Cloudflare-CPanel-$LATEST_VERSION"
INSTALL_DIR="/usr/local/cpanel"

if [ "$VERBOSE" = true ]; then
Expand Down
2 changes: 1 addition & 1 deletion cloudflare.uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ if [ "$cfonupgrade" != "" ]; then
sed -i '/cloudflare_update.sh/d' /scripts/postupcp
fi

echo "CloudFlare cPanel plugin has been uninstalled."
echo "Cloudflare cPanel plugin has been uninstalled."

0 comments on commit 26443f4

Please sign in to comment.