Automated install script and maintenance #523
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This implements an automated method to install nextcloud via env variables.
This implements some automated maintenance steps, which fixes annoying warnings in the admin panel and is more comfortable.
This implements a automated way to reset the admin's password via env variables.
This implements a loading mechanism for env variables from a file.
Disclaimer: I took some inspiration / code from the mariadb container.
Benefits of this PR and context:
Improved UX and automated deployment.
How Has This Been Tested?
This was tested with docker compose and mariadb. I tested multiple instances.
It doesn't affect other parts of the code, but the order of modifying files is altered to prevent issues.
Source / References:
https://github.com/linuxserver/docker-mariadb/blob/912096e6bcc4b8a0b0ec6b20f347a4e93dad7d1e/root/etc/s6-overlay/s6-rc.d/init-mariadb-initdb/run#L23
https://github.com/linuxserver/docker-mariadb/blob/912096e6bcc4b8a0b0ec6b20f347a4e93dad7d1e/readme-vars.yml#L43