A free open source IT asset/license management system
Purposal for fix on issue 6251 - max upload filesize (#7930)
Joshib14f37d966db
diff --git a/docker/startup.sh b/docker/startup.shindex 14777cc10d..6921103de2 100644--- a/docker/startup.sh+++ b/docker/startup.sh@@ -1,4 +1,4 @@-#!/bin/sh+#!/bin/bash# fix key if neededif [ -z "$APP_KEY" ]@@ -41,6 +41,14 @@ chown -R docker:root /var/lib/snipeit/data/*chown -R docker:root /var/lib/snipeit/dumpschown -R docker:root /var/lib/snipeit/keys+# Fix php settings+if [ -v "PHP_UPLOAD_LIMIT" ]+then+ echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}"+ sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini+fi++# If the Oauth DB files are not present copy the vendor files over to the db migrationsif [ ! -f "/var/www/html/database/migrations/*create_oauth*" ]then