From 33d3267a94ddda0453d1e4bf303afc08615c8591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiesner=20Andr=C3=A1s?= Date: Fri, 22 Jan 2021 17:10:50 +0100 Subject: [PATCH] =?UTF-8?q?ellen=C5=91rz=C3=A9s=20hozz=C3=A1adva?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose-example.yml | 3 +++ entrypoint.sh | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose-example.yml b/docker-compose-example.yml index ef54ae7..c61446b 100644 --- a/docker-compose-example.yml +++ b/docker-compose-example.yml @@ -15,5 +15,8 @@ services: PHW_SQL_DB: photowall_levendula_db PHW_SQL_IP: 172.28.0.6 PHW_SERVER_NAME: www.epagris.com/mkk/levendula/photowall + PHW_REVIS_PWD: photowall_revisor_password + PHW_DB_GRANTED: "false" + PHW_DEBUG_MODE: "false" volumes: - ~/PHOTOWALL/ARTWORKS/levendula:/var/www/html/ARTWORKS diff --git a/entrypoint.sh b/entrypoint.sh index 53dfbe7..b7af46b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,9 +1,12 @@ #!/bin/sh +# generate revisor's password hash +PHW_REVIS_PWD_HASH=$(php -r "echo password_hash("${PHW_REVIS_PWD}", PASSWORD_DEFAULT);") + # generate globals.php from environment variables cd /var/www/html -echo " globals.php +echo " globals.php # create ARTWORKS directories mkdir -p ARTWORKS/incoming