From fd1c313de58628a5b5a9a720e0c8620bc4a7c6ff Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 8 Aug 2019 11:59:20 +0200 Subject: Install: explicit and exit on error --- install.sh | 4 +++- requirements.txt | 2 +- 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 -- cgit v1.2.3