fix entrypoint.sh

This commit is contained in:
cherednik 2024-10-22 16:36:12 +04:00
parent 61c61d7df0
commit 544302140b
2 changed files with 8 additions and 6 deletions

View File

@ -68,9 +68,9 @@ ENV COMPOSER_ALLOW_SUPERUSER=1
RUN composer install
RUN service php8.3-fpm start
#COPY entrypoint.sh /entrypoint.sh
#
#ENTRYPOINT [ "/entrypoint.sh" ]
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["php-fpm8.3", "-F"]
EXPOSE 9000

View File

@ -1,6 +1,8 @@
#!/bin/bash -x
if [[ $APP_ENV == "prod"]];then
APP_ENV=$(grep APP_ENV $DIRECTORY".env.local" | xargs)
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