Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIRST_INSTALL in container causes LocalConfiguration.php to be overwritten #218

Open
fashberg opened this issue Aug 2, 2022 · 0 comments

Comments

@fashberg
Copy link

fashberg commented Aug 2, 2022

Hey Martin!
Thanks for your great effort in this project!

I saw my LocalConfiguration.php overwritten every time i've clicked in Admin-UI at Admin-Tools -> Settings. It asks for PW an then initializes the LocalConfiguration.php - which caused the override.

Reason:
Container comes with 'cd /var/www/html && touch FIRST_INSTALL', defined here https://github.com/martin-helmich/docker-typo3/blob/master/11.5/Dockerfile#L66

If that file exists the first run overrides the config.
After recreating the container (k8s redeploy in my case) the file appears again, because /var/www/html itself is not persisted.

Quick fix for me is just remove that file in an own image:


FROM martinhelmich/typo3:11.5

# Install TYPO3
RUN echo 'always_populate_raw_post_data = -1\nmax_execution_time = 300\nmax_input_vars = 1500\nupload_max_filesize = 1G\npost_max_size = 1G' > /usr/local/etc/php/conf.d/typo3.ini
RUN cd /var/www/html && \
    rm FIRST_INSTALL

Better would be to persist the state of that file.

Kind Regards

Folke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant