Skip to content

Commit fbfb7bd

Browse files
authored
Merge pull request #22 from linuxserver/ini-grep-fix
removed -x option since we are just looking for the directive, not ex…
2 parents d39c412 + 2bc3556 commit fbfb7bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ CORE_DIR=(\
2525
mkdir -p /config/dokuwiki/lib/
2626

2727
## Move user folders to persistent storage
28-
for i in "${USER_DIRECTORY[@]}"; do
28+
for i in "${USER_DIRECTORY[@]}"; do
2929
[[ ! -d /config/dokuwiki/${i} ]] && \
3030
[[ -d /app/dokuwiki/"${i}" ]] && \
3131
mv /app/dokuwiki/"${i}" /config/dokuwiki/"${i}"/
3232
done
3333

3434
## Remove user folders
35-
for i in "${USER_DIRECTORY[@]}"; do
35+
for i in "${USER_DIRECTORY[@]}"; do
3636
[[ -d /app/dokuwiki/"${i}" ]] && \
3737
rm -rf /app/dokuwiki/"${i}"
3838
done
3939

4040
## Make Symlinks
41-
for i in "${USER_DIRECTORY[@]}"; do
41+
for i in "${USER_DIRECTORY[@]}"; do
4242
[[ ! -L /app/dokuwiki/"${i}" ]] && \
4343
ln -s /config/dokuwiki/"${i}" /app/dokuwiki/"${i}"
4444
done
@@ -52,8 +52,8 @@ for i in "${CORE_DIR[@]}"; do
5252
done
5353

5454
## Bump php upload max filesize and post max size to 100MB by default
55-
grep -qxF 'upload_max_filesize' /config/php/php-local.ini || echo 'upload_max_filesize = 100MB' >> /config/php/php-local.ini
56-
grep -qxF 'post_max_size' /config/php/php-local.ini || echo 'post_max_size = 100MB' >> /config/php/php-local.ini
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
5757

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

0 commit comments

Comments
 (0)