diff options
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 |
commit | fd1c313de58628a5b5a9a720e0c8620bc4a7c6ff (patch) | |
tree | 93d4d95af0b6cd8335e0f26a62556b06362f2683 | |
parent | f8edda45b5198adb75e98afea9cd487918422f02 (diff) | |
download | Comm-on-net-fd1c313de58628a5b5a9a720e0c8620bc4a7c6ff.tar.bz2 Comm-on-net-fd1c313de58628a5b5a9a720e0c8620bc4a7c6ff.zip |
Install: explicit and exit on error
-rwxr-xr-x | install.sh | 4 | ||||
-rw-r--r-- | requirements.txt | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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 |