Skip to content

Commit f657115

Browse files
authored
Merge pull request #24 from linuxserver/grep
fix php-local.ini bug introduced in last PR
2 parents 00a783f + c4fcd6a commit f657115

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
218218

219219
## Versions
220220

221+
* **23.09.20:** - Fix php-local.ini bug introduced in the prior PR.
221222
* **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.
222223
* **19.12.19:** - Rebasing to alpine 3.11.
223224
* **01.12.19:** - Add php7-ldap package to support LDAP authentication.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ app_setup_block: |
4040
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 }})
4141
# changelog
4242
changelogs:
43+
- { date: "23.09.20:", desc: "Fix php-local.ini bug introduced in the prior PR." }
4344
- { 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."}
4445
- { date: "19.12.19:", desc: "Rebasing to alpine 3.11." }
4546
- { date: "01.12.19:", desc: "Add php7-ldap package to support LDAP authentication." }

root/etc/cont-init.d/50-config

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,14 @@ for i in "${CORE_DIR[@]}"; do
5151
ln -s /app/dokuwiki/"${i}" /config/dokuwiki/"${i}"
5252
done
5353

54+
## TODO: Remove this following bit by 12/19/2020
55+
# Remove erronously added configs post-init
56+
sed -i "s/^upload_max_filesize = 100MB$//g" /config/php/php-local.ini
57+
sed -i "s/^post_max_size = 100MB$//g" /config/php/php-local.ini
58+
5459
## Bump php upload max filesize and post max size to 100MB by default
55-
grep -qF 'upload_max_filesize' /config/php/php-local.ini || echo 'upload_max_filesize = 100MB' >> /config/php/php-local.ini
56-
grep -qF 'post_max_size' /config/php/php-local.ini || echo 'post_max_size = 100MB' >> /config/php/php-local.ini
60+
grep -qF 'upload_max_filesize' /config/php/php-local.ini || echo 'upload_max_filesize = 100M' >> /config/php/php-local.ini
61+
grep -qF 'post_max_size' /config/php/php-local.ini || echo 'post_max_size = 100M' >> /config/php/php-local.ini
5762

5863
## Remove install.php once setup & enable pretty urls to work after setting .htaccess method in admin panel.
5964
if [[ -f /config/dokuwiki/conf/local.php ]]; then

0 commit comments

Comments
 (0)