From c4fcd6aab259edbdd03b2a0ec685f6f6fa9b2633 Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 23 Sep 2020 12:18:47 -0400 Subject: [PATCH] fix php-local.ini bug introduced in last PR --- README.md | 1 + readme-vars.yml | 1 + root/etc/cont-init.d/50-config | 9 +++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77f9c32..f4dd728 100644 --- a/README.md +++ b/README.md @@ -218,6 +218,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **23.09.20:** - Fix php-local.ini bug introduced in the prior PR. * **14.09.20:** - Rebase to alpine 3.12. Add php7-ctype, php7-curl, php7-pdo_mysql, php7-pdo_pgsql, php7-pecl-imagick and php7-iconv. Bump upload max filesize and post max size to 100MB. Remove deprecated APP_URL env var. Fix breaking addons. * **19.12.19:** - Rebasing to alpine 3.11. * **01.12.19:** - Add php7-ldap package to support LDAP authentication. diff --git a/readme-vars.yml b/readme-vars.yml index 04e0bd7..d333580 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -40,6 +40,7 @@ app_setup_block: | Upon first install go to `http://$IP:$PORT/install.php` once you have completed the setup, restart the container, login as admin and set "Use nice URLs" in the `admin/Configuration Settings` panel to `.htaccess` and tick `Use slash as namespace separator in URLs` to enable [nice URLs](https://www.dokuwiki.org/rewrite) you will find the webui at `http://$IP:$PORT/`, for more info see [{{ project_name|capitalize }}]({{ project_url }}) # changelog changelogs: + - { date: "23.09.20:", desc: "Fix php-local.ini bug introduced in the prior PR." } - { date: "14.09.20:", desc: "Rebase to alpine 3.12. Add php7-ctype, php7-curl, php7-pdo_mysql, php7-pdo_pgsql, php7-pecl-imagick and php7-iconv. Bump upload max filesize and post max size to 100MB. Remove deprecated APP_URL env var. Fix breaking addons."} - { date: "19.12.19:", desc: "Rebasing to alpine 3.11." } - { date: "01.12.19:", desc: "Add php7-ldap package to support LDAP authentication." } diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 2b1a24f..8b630a7 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -51,9 +51,14 @@ for i in "${CORE_DIR[@]}"; do ln -s /app/dokuwiki/"${i}" /config/dokuwiki/"${i}" done +## TODO: Remove this following bit by 12/19/2020 +# Remove erronously added configs post-init +sed -i "s/^upload_max_filesize = 100MB$//g" /config/php/php-local.ini +sed -i "s/^post_max_size = 100MB$//g" /config/php/php-local.ini + ## Bump php upload max filesize and post max size to 100MB by default -grep -qF 'upload_max_filesize' /config/php/php-local.ini || echo 'upload_max_filesize = 100MB' >> /config/php/php-local.ini -grep -qF 'post_max_size' /config/php/php-local.ini || echo 'post_max_size = 100MB' >> /config/php/php-local.ini +grep -qF 'upload_max_filesize' /config/php/php-local.ini || echo 'upload_max_filesize = 100M' >> /config/php/php-local.ini +grep -qF 'post_max_size' /config/php/php-local.ini || echo 'post_max_size = 100M' >> /config/php/php-local.ini ## Remove install.php once setup & enable pretty urls to work after setting .htaccess method in admin panel. if [[ -f /config/dokuwiki/conf/local.php ]]; then