diff --git a/install.sh b/install.sh index 0363d8287cab3e03b093af1eae6e2bf25daee170..cadae2ae8b34154bdad4fe6a4e8bc26a93d03216 100644 --- a/install.sh +++ b/install.sh @@ -196,10 +196,12 @@ ucoin_detect_profile() { ucoin_is_available_for_distribution() { local distribution + local distribution_deb distribution=`cat /etc/*-release file 2>/dev/null | grep "Ubuntu"` + distribution_deb=`cat /etc/*-release file 2>/dev/null | grep "Debian"` - if [[ $distribution = *Ubuntu\ 14* ]] || [[ $distribution = *Ubuntu\ 15* ]]; then + if [[ "$distribution" = *Ubuntu\ 14* ]] || [[ "$distribution" = *Ubuntu\ 15* ]] || [[ "$distribution_deb" = *Debian*8*jessie* ]]; then return 0 else return 1 @@ -262,4 +264,4 @@ ucoin_reset() { [ "_$UCOIN_ENV" = "_testing" ] || ucoin_do_install $1 -} # this ensures the entire script is downloaded # \ No newline at end of file +} # this ensures the entire script is downloaded #