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

Commit

Permalink
Merge pull request #60 from obfuscurity/fix/pyopenssl_warning
Browse files Browse the repository at this point in the history
Check for python-openssl and exit if installed
  • Loading branch information
obfuscurity authored Feb 26, 2017
2 parents ab3da3c + 5a70880 commit 1262986
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,39 @@ GRAPHITE_HOME='/opt/graphite'
GRAPHITE_CONF="${GRAPHITE_HOME}/conf"
GRAPHITE_STORAGE="${GRAPHITE_HOME}/storage"

# Check to see if python-openssl is installed first
set +e
PYTHON_OPENSSL_INSTALLED=`dpkg -s python-openssl 2>/dev/null | grep '^Status'`
set -e

# This can break Carbon's python-twisted, exit with explanation
if [[ ! $PYTHON_OPENSSL_INSTALLED == '' ]]; then
set +x
clear
echo
echo
echo
echo "##########################################################"
echo
echo "It appears that you have the python-openssl installed."
echo "There are known issues with this package that can cause"
echo "the Carbon service to fail to start. If you don't need"
echo "the python-openssl library, it's recommended that you"
echo "uninstall this package before continuing."
echo
echo " $ sudo apt-get remove python-openssl"
echo
echo "More information is provided at the link below."
echo
echo "https://github.com/graphite-project/graphite-web/issues/1721#issuecomment-253279181"
echo
echo "##########################################################"
echo
echo
echo
exit 1
fi

if [ -z $GRAPHITE_RELEASE ]; then
GRAPHITE_RELEASE='0.9.15'
fi
Expand Down

0 comments on commit 1262986

Please sign in to comment.