[devcontainer] fix user creation

This commit is contained in:
Shish 2024-02-21 19:41:48 +00:00 committed by Shish
parent 7bc8459cda
commit 535a6f30c1
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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