From 535a6f30c15f712ddc36c5c000b97e97670d8d60 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 21 Feb 2024 19:41:48 +0000 Subject: [PATCH] [devcontainer] fix user creation --- .devcontainer/devcontainer.json | 2 +- .docker/run.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e507a4c0..6f487596 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -23,7 +23,7 @@ }, "updateContentCommand": "composer install", - "postCreateCommand": "php ./.docker/run.php", + "postCreateCommand": "./.docker/entrypoint.sh php ./.docker/run.php", "containerEnv": { "UID": "2000", "GID": "2000", diff --git a/.docker/run.php b/.docker/run.php index 4539b4df..381a4278 100755 --- a/.docker/run.php +++ b/.docker/run.php @@ -8,8 +8,8 @@ chown('/app/data', 'shimmie'); chgrp('/app/data', 'shimmie'); // Look at docker environment variables -$MAX_FILE_UPLOADS = getenv('MAX_FILE_UPLOADS') ?: "20"; -$UPLOAD_MAX_FILESIZE = getenv('UPLOAD_MAX_FILESIZE') ?: '20M'; +$MAX_FILE_UPLOADS = getenv('MAX_FILE_UPLOADS') ?: "100"; +$UPLOAD_MAX_FILESIZE = getenv('UPLOAD_MAX_FILESIZE') ?: '100M'; $MAX_TOTAL_UPLOAD = ini_parse_quantity($UPLOAD_MAX_FILESIZE) * intval($MAX_FILE_UPLOADS); // Generate a config file for whatever web server we are using today