docker: every restart of container creates additional line at the end of config-site.php

Issue #1354 resolved
Robert Christian Strasser created an issue

Hello Janos,

every time I restart my piler container via docker-compose up -d, it creates a new line

$config['RT'] = 1;

at the end of the config-site.php inside the container, adding up to ever more of those lines at the end of that file.

I guess the culprit is line 134 in start.sh

      echo "\$config['RT'] = 1;" >> "$CONFIG_SITE_PHP"

since it does not check if the line already exists and just adds a new one every time on startup.

PHP obviously does not care, it just takes the last value, but the file grows every restart by more unnecessary lines of code.

Maybe you can fix this. Thanks ever so much.

Kind regards,

Robert

Comments (2)

  1. Janos SUTO repo owner

    Hello Christian, thank you for the bug report. I’ve applied the fix to the master branch.

  2. Log in to comment