summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-08 11:59:20 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-08 11:59:20 +0200
commitfd1c313de58628a5b5a9a720e0c8620bc4a7c6ff (patch)
tree93d4d95af0b6cd8335e0f26a62556b06362f2683
parentf8edda45b5198adb75e98afea9cd487918422f02 (diff)
downloadComm-on-net-fd1c313de58628a5b5a9a720e0c8620bc4a7c6ff.tar.bz2
Comm-on-net-fd1c313de58628a5b5a9a720e0c8620bc4a7c6ff.zip
Install: explicit and exit on error
-rwxr-xr-xinstall.sh4
-rw-r--r--requirements.txt2
2 files changed, 4 insertions, 2 deletions
diff --git a/install.sh b/install.sh
index 6071b98..0dd0845 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -e
+set -x
if [ -z "$URL" ]; then echo "URL env variable must be set"; exit 1; fi
@@ -10,7 +12,7 @@ apt install python3 python3-pip python3-psycopg2 python3-pygments
apt install -t stretch-backports python3-django
# buster: apt install python3-django
-pip3 install scrapy==1.7 python3-tldextract==2.2
+pip3 install scrapy==1.7 tldextract==2.2
# buster: apt install python3-tldextract django-ajax-selects
# bullseye: apt install python3-scrapy python3-tldextract django-ajax-selects
diff --git a/requirements.txt b/requirements.txt
index 5a944b8..a6df1be 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,5 +3,5 @@ tldextract==2.2
django==1.11
django-ajax-selects==1.6.0
psycopg2
-pygments
+pygments==2.2
# https://splash.readthedocs.io/ \ No newline at end of file