diff --git a/Dockerfile b/Dockerfile index 7d93f72..c81cb18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,7 +54,7 @@ RUN apt update && apt install -y okular-csp-utils RUN mkdir -p /root/.config COPY license.key /license.key -RUN pdfcpro install-license /license.key +RUN echo Y | pdfcpro install-license /license.key COPY Inter-Bold.ttf /usr/local/share/fonts/Inter-Bold.ttf RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer diff --git a/entrypoint.sh b/entrypoint.sh index d5bf05d..d2ff61d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash -x -if [[ $SITE == "prod"]];then +if [[ $APP_ENV == "prod"]];then service pcscd start cert=$(/opt/cprocsp/bin/amd64/csptest -keyset -enum_cont -verifyc -fq | grep Aktiv | awk -F'00 00' '{print $2}' | tr -d '\\') /opt/cprocsp/bin/amd64/certmgr -inst -cont "${cert}" -store uMy