diff options
-rwxr-xr-x | install/ishtar-install | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/install/ishtar-install b/install/ishtar-install index c30781563..13af91b92 100755 --- a/install/ishtar-install +++ b/install/ishtar-install @@ -384,15 +384,18 @@ EOF fi if [ "$dist_version" == "stretch" ]; then - if [ "$backports_activated" != 'true' ]; then - echo "" - cecho r " In order to install Ishtar you have to activate Debian backports." - echo " To do that:" - echo "" - echo " echo 'deb http://ftp.debian.org/debian stretch-backports main contrib' >> /etc/apt/sources.list" - echo "" - cecho p " Run again Ishtar installation script after that." - exit 1 + + if [ "$lsb_dist" == 'debian' ]; then + if [ "$backports_activated" != 'true' ]; then + echo "" + cecho r " In order to install Ishtar you have to activate Debian backports." + echo " To do that:" + echo "" + echo " echo 'deb http://ftp.debian.org/debian stretch-backports main contrib' >> /etc/apt/sources.list" + echo "" + cecho p " Run again Ishtar installation script after that." + exit 1 + fi fi if [ "$default_db" == '127.0.0.1' ]; then @@ -405,7 +408,13 @@ EOF echo "-------------------------------------------------------------------------------"; cecho y "Installing Ishtar dependencies" echo ""; - ( set -x; $sh_c 'sleep 3; apt-get install -t stretch-backports -y -q python-django' ) + + if [ "$lsb_dist" == 'debian' ]; then + ( set -x; $sh_c 'sleep 3; apt-get install -t stretch-backports -y -q python-django' ) + fi + if [ "$lsb_dist" == 'raspbian' ]; then + ( set -x; $sh_c 'pip install django==1.11' ) + fi ( set -x; $sh_c 'sleep 3; apt-get install -y -q \ python-django-registration libpangocairo-1.0-0 python-requests \ python-bs4 python-cffi python-django-compressor \ |