diff --git a/docker/Dockerfile b/docker/Dockerfile index 9ce1210..0e748c3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,7 +18,7 @@ ENV WIS2DOWNLOADER_CONFIG "/app/config/config.json" # Update / upgrade RUN apt-get update && \ apt-get upgrade && \ - apt-get install -y gettext-base curl + apt-get install -y gettext-base=0.21-12 curl=7.88.1 # install python dependencies RUN python -m pip install --no-cache-dir gunicorn==23.0.0 requests==2.32.3 wis2downloader==0.3.0 diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index f2a2fe5..9b75abf 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -17,8 +17,8 @@ if [ ! -f "$DOWNLOAD_DIR/.session-info.json" ]; then echo ' "topics": {},' >> "$DOWNLOAD_DIR/.session-info.json" # generate a random string for client_id echo "Generating random client_id" - set client_id = $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) - echo ' "client_id": "wis2box-wis2downloader-$(client_id)"' >> "$DOWNLOAD_DIR/.session-info.json" + client_id = $(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) + echo ' "client_id": "wis2box-wis2downloader-'"$(client_id)"'"' >> "$DOWNLOAD_DIR/.session-info.json" echo "}" >> "$DOWNLOAD_DIR/.session-info.json" fi