NathanVaughn / webtrees-docker

Up-to-date Docker image for webtrees with all the bells and whistles.
https://hub.docker.com/r/nathanvaughn/webtrees
MIT License
60 stars 15 forks source link

Investigate having data/config.ini.php be auto-generated #45

Closed NathanVaughn closed 3 years ago

NathanVaughn commented 3 years ago

Something like this.

; <?php exit; ?> DO NOT DELETE THIS LINE
dbhost="mariadb"
dbport="3306"
dbuser="webtrees"
dbpass="password"
dbname="webtrees"
tblpfx="wt_"
base_url="https://webtrees"
rewrite_urls="1"

I don't know if webtrees will automatically create the database schema, or if that's only done on setup. Want to investigate some. More of a reminder to myself.

NathanVaughn commented 3 years ago

This looks doable, by making a POST request to the setup endpoint with the proper form encoded data, along with a step number of "6".

NathanVaughn commented 3 years ago

Commit 1ac94d7d974b7cdd36feaee00b9942ac5ec50696

NathanVaughn commented 3 years ago

This actually works perfectly, just need to be careful to integrate with #44 after I do some more testing on that.