diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-18 17:30:44 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-18 17:30:44 +0200 |
commit | 8d9185a6fa60b16fbf883989935223971ac61be2 (patch) | |
tree | 3fcd6aac9ce73812bb0b0866a580ae9f78d28311 /install/ishtar-install | |
parent | 5caf2e5e2e2f2a851c3239d5df6c4bf874ad426d (diff) | |
download | Ishtar-8d9185a6fa60b16fbf883989935223971ac61be2.tar.bz2 Ishtar-8d9185a6fa60b16fbf883989935223971ac61be2.zip |
Adapt install script for rpi
Diffstat (limited to 'install/ishtar-install')
-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 \ |