summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commitcbe1ea34243d847d572a5733f51de8f7d7fe8235 (patch)
tree3fcd6aac9ce73812bb0b0866a580ae9f78d28311
parent60bc6c175012494957d6d48db14e1a28160a3481 (diff)
downloadIshtar-cbe1ea34243d847d572a5733f51de8f7d7fe8235.tar.bz2
Ishtar-cbe1ea34243d847d572a5733f51de8f7d7fe8235.zip
Adapt install script for rpi
-rwxr-xr-xinstall/ishtar-install29
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 \